Escolar Documentos
Profissional Documentos
Cultura Documentos
What is Android Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language, since 2008. Now android is the best mobile platform application powered by Google, http: //developer.android.com/.
b. Dalvik virtual machine optimized for mobile devices c. Integrated browser based on the open source WebKit engine d. Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) e. SQLite for structured data storage f. Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
Page 1
h. Bluetooth, EDGE, 3G, and WiFi (hardware dependent) i. j. Camera, GPS, compass, and accelerometer (hardware dependent) Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE
Page 2
IV. Other Information a. Android will ship with a set of core applications including an email client, SMS program, calendar, maps, browser, contacts, and others. All applications are written using the Java programming language. b. By providing an open development platform, Android offers developers the ability to build extremely rich and innovative applications. Developers are free to take advantage of the device hardware, access location information, run background services, set alarms, add notifications to the status bar, and much, much more. c. Android includes a set of C/C++ libraries used by various components of the Android system. These capabilities are exposed to developers through the Android application framework. Some of the core libraries such as system C library, Media library, 3D library etc.
V. Getting Started with Android a. Eclipse installed as GUI editor android http://www.eclipse.org/downloads/, Eclipse Packages, Eclipse Classic 3.4.2 / Galileo 3.5 platform, go to Classic, GanyMede
b. Android SDK installed as emulator, basic platform and environment android style, go to http://developer.android.com/sdk/index.html c. Eclipse Update Manager install plugins for Android Development Tools (ADT) go to link https://dl-ssl.google.com/android/eclipse/, Eclipse Help Software Updates, Available Software Tab, Add Site d. Open Eclipse, Window Preferences. Configure Android path installation from folder android SDK downloaded earlier. https://dl-ssl.google.com/android/repository/repository.xml
Android Training Session Page 3
B. Intermediate Level; (3 sessions) 1. 2. 3. 4. 5. 6. 7. 8. Customize ListView, Thread, Sync Method ProgressBar ImageLoader ListView, Simple HTTP Connection Menu, Create Dialog, Icon, Click Listener, get default R icon Simple TabWidget, get content URI list embed, admobView Simple Phone Sim Card Activity, Simple Database SQL Lite WebView, AutoCompleteTextView, CheckBoxView, GalleryView (Object View) Customize Database SQL Lite, RSS Parsing, Simple MusicPlayer SharedPreferences, Simple JSON, using API google
C. Advanced Level; (2 sessions) 1. 2. 3. 4. 5. 6. 7. 8. SMS, Receive SMS, EMAIL other Phone Activities Customize Database SQL Lite, SharedPreferences Access Device (Bluetooth, WIFI, GPS), VideoView Project Advanced MapActivities, GPS access Project Advanced, Mobile News RSS Reader Project Advanced, Translator Powered by Google Project Advanced, Twitter, Facebook API integrated Project Advanced Membership Client Server Side, Transaction Case
Page 5
VIII.
Page 6
3. Update SDK & AVD Manager (Window -> Android SDK and AVD Manager)
Page 7
C. Project Variable Input a. b. c. d. e. f. Project Name: HelloWorld Build Target: Android 2.1 Application Name: HelloWorld Package Name: im2.org.sample.main Create Activity: HelloActivity Min SDK Version: 7
Page 9
Page 10
E. Project Structure
Page 11
Project Name: HelloWorld Src Gen Asset Res->drawable Res->layout Res->string AndroidManifest.xml => Source Script => Auto-generate Id Unique Variable Local => Storage File (movie, sound etc) => Storage picture layout => XML layout => definition variable global
F. AndroidManifest XML
Page 13
Page 15
Page 16
Page 18
Page 19
Page 20
Guidance: http://developer.android.com/resources/tutorials/hello-world.html
Summary: 1. Android Platform Description 2. Installation GUI & Editor 3. Create First Android App 4. Structure Android Project 5. Improvement First Android App
6.
Developer Guidance
Page 22