Android    Emulator, Hello World & Import Project                           Vlad PETRE                    vlad@vladpetre.c...
Sa cream un Android Virtual Device (I)    • Din Eclipse: Window -> Android SDK and AVD      Manager    • Virtual Devices -...
Sa cream un Android Virtual Device (II)    • La Hardware, adaugam proprietatile cu valori YES:      – SD Card Support     ...
Pornirea Emulatorului    • Din Android SDK and AVD Manager selectam AVD-      ul creat mai devreme, Android22, si selectam...
Emulatorul  5          Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
Sa cream primul nostru proiect Android!6            Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
Hello World! (I)    •   Din Eclipse, File -> New -> Project    •   Project Name: HelloAndroid    •   Target Name: Google A...
Hello World! (II)    • Pentru a rula, click dreapta pe proiect in Package      Explorer -> Run As -> Android Application  ...
Hello World! (III)   9                 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
Cum se importa un proiect (I)     • Sa presupunem ca vrem sa importam un proiect cu numele       ExternalProject.     • Di...
Cum se importa un proiect (II)     • Click dreapta pe numele proiectului in Package       Explorer -> Properties -> Androi...
Cum se importa un proiect (III)     • Daca stiti ca proiectul este bun, dar Eclipse-ul       semnaleaza erori, incercati: ...
Referinte     • http://pdm.ipworkshop.ro     • http://developer.android.com/guide/developing/tools/e13                 Sco...
Întrebări?14   Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
Upcoming SlideShare
Loading in …5
×

[Curs Android] C05 - Emulator (IPW 2011)

773 views
687 views

Published on

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

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
773
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
30
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Le explic in amanunt tot ce este intr-un proiect, inclusiv despre XML,
  • [Curs Android] C05 - Emulator (IPW 2011)

    1. 1. Android Emulator, Hello World & Import Project Vlad PETRE vlad@vladpetre.com http://twitter.com/vladpetre88 http://facebook.com/vladpetre88 http://www.linkedin.com/in/vladpetre881 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    2. 2. Sa cream un Android Virtual Device (I) • Din Eclipse: Window -> Android SDK and AVD Manager • Virtual Devices -> New • Name: “Android22” • Target: Google APIs – API Level 7 • SD Card, Size: 50 MiB • Skin: Built-in: HVGA (adica rezolutia de 320x480)2 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    3. 3. Sa cream un Android Virtual Device (II) • La Hardware, adaugam proprietatile cu valori YES: – SD Card Support – Accelerometer – Camera Support (double check sa aiba valoarea YES!!!) – GPS Support – Device Ram Size: 192 • Mai multe detalii aici: – http://developer.android.com/guide/developing/devices/man3 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    4. 4. Pornirea Emulatorului • Din Android SDK and AVD Manager selectam AVD- ul creat mai devreme, Android22, si selectam Start. • Pentru ca dureaza ceva pana se incarca, cat timp lucram in Eclipse, NU il mai inchidem!4 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    5. 5. Emulatorul 5 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    6. 6. Sa cream primul nostru proiect Android!6 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    7. 7. Hello World! (I) • Din Eclipse, File -> New -> Project • Project Name: HelloAndroid • Target Name: Google APIs 7 • Application Name: HelloAndroid • Package Name: com.{numele_vostru}.helloandroid – trebuie sa fie unic • Create Activity: HelloAndroid • Min SDK Version: 7 • Click Finish • Tutorial oficial HelloWorld aici: http://developer.android.com/resources/tutorials/hello-world.html7 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    8. 8. Hello World! (II) • Pentru a rula, click dreapta pe proiect in Package Explorer -> Run As -> Android Application • Alegeti un dispozitiv real sau virtual • Click OK8 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    9. 9. Hello World! (III) 9 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    10. 10. Cum se importa un proiect (I) • Sa presupunem ca vrem sa importam un proiect cu numele ExternalProject. • Din Eclipse, File -> Import -> General -> Existing Projects Into Workspace -> Next • Select Root Directory: ExternalProject – acesta este directorul radacina al proiectului • Bifati Copy projects into workspace • Click Finish10 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    11. 11. Cum se importa un proiect (II) • Click dreapta pe numele proiectului in Package Explorer -> Properties -> Android • Sa fie selectat ca Target Name: Google APIs 7 • Click Apply -> Click OK11 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    12. 12. Cum se importa un proiect (III) • Daca stiti ca proiectul este bun, dar Eclipse-ul semnaleaza erori, incercati: – Click dreapta pe numele proiectului in Package Explorer -> Android Tools -> Fix Project Properties – Din bara de meniuri -> Project -> Clean -> bifati proiectul in cauza -> click OK12 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    13. 13. Referinte • http://pdm.ipworkshop.ro • http://developer.android.com/guide/developing/tools/e13 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea
    14. 14. Întrebări?14 Scoala de Vara IP Workshop 2011 – Calimanesti Valcea

    ×