These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
SIM Project: Optimizing a Benchmarking ToolVlad Petre
Prezentare a proiectului de semestru, ce a constat in incercarea de a paraleliza un tool de benchmarking, sustinuta in ianuarie 2011, in cadrul laboratorului final al materiei Arhitecturi si Prelucrari Paralele (Facultatea de Automatica si Calculatoare - Universitatea Politehnica Bucuresti).
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
Prostate cancer is among the leading causes of cancer death among American men, second only to lung cancer. Learn more about prostate cancer and how New Jersey CyberKnife's noninvasive treatment may work for you.
The document describes the software architecture of Voicenger, an application for structured group communication. It uses a peer-to-peer architecture with client and server components to allow high quality voice chatting. The client has interfaces for the user interface, peer communication, and profile storage on the server. Key high-level modules include the GUI, file processing, sound, messaging, and interfaces to the JXTA peer network and backend database. Use cases cover user registration, chat, file sharing, and integrating with social networks. Appendices provide more details on data transfer and message rendering.
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
SIM Project: Optimizing a Benchmarking ToolVlad Petre
Prezentare a proiectului de semestru, ce a constat in incercarea de a paraleliza un tool de benchmarking, sustinuta in ianuarie 2011, in cadrul laboratorului final al materiei Arhitecturi si Prelucrari Paralele (Facultatea de Automatica si Calculatoare - Universitatea Politehnica Bucuresti).
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
Prostate cancer is among the leading causes of cancer death among American men, second only to lung cancer. Learn more about prostate cancer and how New Jersey CyberKnife's noninvasive treatment may work for you.
The document describes the software architecture of Voicenger, an application for structured group communication. It uses a peer-to-peer architecture with client and server components to allow high quality voice chatting. The client has interfaces for the user interface, peer communication, and profile storage on the server. Key high-level modules include the GUI, file processing, sound, messaging, and interfaces to the JXTA peer network and backend database. Use cases cover user registration, chat, file sharing, and integrating with social networks. Appendices provide more details on data transfer and message rendering.
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
Un articol despre SSD-uri scris in octombrie 2010 pentru o revista, pe nume Console, al carui prim numar nu a mai reusit sa vada niciodata lumina zilei.
Bibliografie:
http://www.anandtech.com/show/2738
http://www.anandtech.com/show/2829
http://www.anandtech.com/show/2614
http://en.wikipedia.org/wiki/Solid-state_drive
The document discusses the 3-D Secure protocol, which was created by Visa in 2001 to add security to online credit card transactions. It does this through an authentication step where the cardholder authenticates themselves with their card-issuing bank during the transaction. The protocol uses XML messages over SSL and a three-domain model including the issuer, acquirer, and interoperability domains. It provides advantages like reduced fraud and increased customer satisfaction but also has disadvantages like potential for phishing and incompatibility with some mobile browsers. Overall, the 3-D Secure protocol has become an industry standard despite some limitations.
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
[Curs Android] C04 - User Interface (IPW 2011)Vlad Petre
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
The document describes a team from Politehnica University of Bucharest called Team Bucharest, consisting of 4 members, that is participating in the Suceava Hard&Soft 2011 competition. Their project involves creating an off-grid home automation system that monitors available energy from alternative sources, uses smart plugs and light dimmers to adjust automatically based on the energy levels, and aims to use energy efficiently with low-power components and profile-based settings. A system diagram is also included.
This document provides an overview of the Voicenger software, which allows groups of friends to communicate and make decisions together. It uses a peer-to-peer architecture to allow for high quality voice conversations without overloading a central server. The application consists of client and server components, uses various technologies like JXTA for networking and a database for profile storage. It provides features for chat, voice calls, conferencing, polling, file sharing and social media integration to support organized discussion and decision making.
Voicenger - System Requirements SpecificationVlad Petre
The document is a system requirements specification for an application called Voicenger. It describes the problem the application aims to solve, which is a lack of structured communication tools for planning and decision making between friends. The solution proposed is a software application that combines features of chat, voice, and social networking applications. It allows users to register, add friends, participate in group chats, call friends, and update their social media statuses. The functional requirements define the user profiles and describe use cases. The system architecture has client and server components. Non-functional requirements address the interface, performance, availability and testing.
Un articol despre SSD-uri scris in octombrie 2010 pentru o revista, pe nume Console, al carui prim numar nu a mai reusit sa vada niciodata lumina zilei.
Bibliografie:
http://www.anandtech.com/show/2738
http://www.anandtech.com/show/2829
http://www.anandtech.com/show/2614
http://en.wikipedia.org/wiki/Solid-state_drive
The document discusses the 3-D Secure protocol, which was created by Visa in 2001 to add security to online credit card transactions. It does this through an authentication step where the cardholder authenticates themselves with their card-issuing bank during the transaction. The protocol uses XML messages over SSL and a three-domain model including the issuer, acquirer, and interoperability domains. It provides advantages like reduced fraud and increased customer satisfaction but also has disadvantages like potential for phishing and incompatibility with some mobile browsers. Overall, the 3-D Secure protocol has become an industry standard despite some limitations.
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
[Curs Android] C04 - User Interface (IPW 2011)Vlad Petre
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
These slides are part of the Android Development Course which I taught to 10 students, while participating in the IP Workshop Summer School 2011.
http://www.scoaladevara.info/2011/?page_id=39
The document describes a team from Politehnica University of Bucharest called Team Bucharest, consisting of 4 members, that is participating in the Suceava Hard&Soft 2011 competition. Their project involves creating an off-grid home automation system that monitors available energy from alternative sources, uses smart plugs and light dimmers to adjust automatically based on the energy levels, and aims to use energy efficiently with low-power components and profile-based settings. A system diagram is also included.
This document provides an overview of the Voicenger software, which allows groups of friends to communicate and make decisions together. It uses a peer-to-peer architecture to allow for high quality voice conversations without overloading a central server. The application consists of client and server components, uses various technologies like JXTA for networking and a database for profile storage. It provides features for chat, voice calls, conferencing, polling, file sharing and social media integration to support organized discussion and decision making.
Voicenger - System Requirements SpecificationVlad Petre
The document is a system requirements specification for an application called Voicenger. It describes the problem the application aims to solve, which is a lack of structured communication tools for planning and decision making between friends. The solution proposed is a software application that combines features of chat, voice, and social networking applications. It allows users to register, add friends, participate in group chats, call friends, and update their social media statuses. The functional requirements define the user profiles and describe use cases. The system architecture has client and server components. Non-functional requirements address the interface, performance, availability and testing.
Românismul de la Mihai Eminescu la Grigore Vieruinachirilov
Proiect “Educație online fără hotare” 2023 - 2024,
implementat de Direcția Generală Educație, Tineret și Sport a municipiului Chișinău în cadrul Proiectului “Educație online”
6. Schimbarea de context
• Schimbarea programului curent de pe procesor
– Salvarea registrilor
– Salvarea setarilor de memorie
6 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
7. Fire de executie (Threads)
• Forma de impartire a programului
– Mai multe cai de procesare
– Partajarea memoriei intre acestea
• Variabilele sunt comune
• Tipuri de fire de executie
– User
– Kernel
7 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
8. Implementarea in Java
• Prin extinderea clasei Thread
– Si suprascrierea metodei run()
• Prin implementarea interfetei Runnable
– Si implmentarea metodei run()
8 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
9. Metoda 1: extinderea clasei Thread
9 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
10. Clasa Thread
class FirExecutie extends Thread
{
// … constructori, functii, etc.
public void run()
{
// setul de instructiuni ce trebuie sa fie
// executat de firul de executie
}
}
10 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
11. Utilizarea clasei FirExecutie
class FirExecutie extends Thread
{
// … constructori, functii, etc.
public void run()
{
// setul de instructiuni ce trebuie sa fie
// executat de firul de executie
}
}
FirExecutie fe = new FirExecutie(…);
fe.start(); <-nu apelam direct metoda run()!!!
11 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
12. Metoda 2: implementarea interfetei Runnable
12 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
13. Interfata Runnable
class FirExecutie implements Runnable
{
// … constructori, functii, etc.
public void run()
{
// codul firului de executie separat
}
}
13 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
14. Utilizarea clasei FirExecutie
class FirExecutie implements Runnable
{
// … constructori, functii, etc.
public void run()
{
// codul firului de executie separat
}
}
Thread fir = new Thread(new FirExecutie());
fir.start(); <-nu apelam direct metoda run()!!!
14 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
16. Diferenta intre Runnable si Thread
Runnable Thread
•Interfata •Clasa
•Obiectul poate extinde •Obiectul trebuie sa extinda
orice alta clasa clasa Thread
•Doar implmenteaza •Mai putin flexibil
interfata Runnable •Cod mai simplu
•Mai flexibil
•Cod putin mai complicat
16 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
17. Oprirea unui fir de executie
Doar cand se termina de executat setul de
instructiuni din metoda run()
17 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
19. Procesarea în Activități
• Procesarea in activitati are loc in:
– Functiile activitatii
• onCreate(…)
• onStart(…)
• …
– Funcțiile observatorilor
• onClick(…)
• Procesare putina!!!
– Trebuie sa evitam starea de Not Responding
• Solutia
– Fire de executie
– Servicii
– AsyncTask
19 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
20. Servicii
• Componenta Android
• Speciala pentru procesare
• Ruleaza in fundal (background)
• Prioritate mai mica
• Mai stabil (in timp)
• Un serviciu ruleaza in threadul principal (threadul in care
ruleaza si activitatile) in cadrul procesului aplicatiei sale.
Componenta Service NU isi creaza propriul sau thread daca
noi nu explicitam acest lucru.
20 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
21. Evenimente
21 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
22. Implementarea serviciilor
• Extinde clasa Service
– Serviciu simplu
• void onCreate();
• int onStartCommand(Intent intent, int flags, int startId);
• void onDestroy();
– Folosind AIDL
• void onBind(Intent intent);
• void onUnbind();
22 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
24. Implementarea unui serviciu
1.Extinderea clasei Service
– Implementarea metodelor
– Crearea unor fire de execuție
2.Declararea componentei Service in Manifest
3.Pornirea/oprirea
– startService(…)
– stopService(…)
24 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
25. Exemplu
• Afiseaza un numar prim pe secunda
– Serviciul nu porneste automat
– Serviciul nu se opreste automat
25 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
26. Numere Prime - Serviciu
26 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
31. AIDL
• Android Interface Definition Language
– RPC pentru Android
• Conexiune intre activitate si serviciu
31 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
32. Remote Procedure Call
• RPC este un mod de comunicare intre diferite procese, ce permit ca un program sa
apeleze subrutine ale altui program.
32 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
33. AIDL
• Seamana cu Java
• Declaratii identice
• Tipuri de variabile limitate
• Primare (int, long, float, double, char, boolean)
– String
– List*
– Map*
– Tipuri special construite
* Trebuie sa contina doar tipuri pentru AIDL
33 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
34. Exemplu: IServiciuFilme.aidl
package pdm.filme;
interface IServiciuFilme
{
Int numarFilme();
String titluFilm(intnumar);
String regizorFilm(intnumar);
}
34 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
35. AIDL => clasa
• IServiciuFilme.aidl
– IServiciuFilme.Stub
• Clasa abstracta cu functiile din Interfata
35 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea