1 / 15

A litte bit about

A litte bit about. Android. Info mostly based on Pro Android 3. The Software Stack. User Applications Java Libraries – most of Java standard edition Activities/Services UI/Graphics/View – modern UI, not Swing Resources/Content Providers Telephone/Camera Multi-Media SQLite Database

lynne
Télécharger la présentation

A litte bit about

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A litte bit about Android Info mostly based on Pro Android 3

  2. The Software Stack • User Applications • Java Libraries – most of Java standard edition • Activities/Services • UI/Graphics/View – modern UI, not Swing • Resources/Content Providers • Telephone/Camera • Multi-Media • SQLite Database • Http/Connectivity • Java SE/Java Apache • Dalvik VM – Virtual machine (optimized JVM) • Core C libraries • Linux Where is Dalvik?

  3. Ahh, there it is

  4. Android Emulator • Processor Emulator • Mimics most device features (headphones, bluetooth, battery, etc.)

  5. Fourth-generation UI

  6. Android Lifecycle • Lifecycle is managed by the system • Limited resources • System determines priority, may shut down to free resources • Callbacks to handle state changes • onCreate, onStart, onRestart, onResume, onPause, onStop, onDestroy • App doesn’t need to respond to all of these • Mostly handle onCreate, onResume, onPause • Be sure to call superclass versions for any method you write http://androidstutorial.blogspot.com/2012/08/lifecycle-of-android-activity.html

  7. Fundamental Components • View. UI elements. • Activity. UI concept. Usually a single screen. May contain one or more views. An app may contain several activities. Example: view data, create data, edit data. • Intent. Intention to do some work. May: broadcast a message, start a service, launch an app, etc. • Content Provider. Work with data. • Service. Background processes that can run for along time. May be local or remote.

  8. Debugging • LogCat • Log.v(TAG, “Message”); • Can’t use with MyLyn (remove plugin)

  9. Eclipse • Install Eclipse for Mobile Developers (or use existing Eclipse) • Remove the MyLyn files so LogCat will work • Install the ADT plugin from: • https://dl-ssl.google.com/android/eclipse/ • Update the ADT tools (Window->ADT manager, see next slide)

  10. Manage your list of devices Click the AVD Manager button Click New to add a new one (this list is initially blank)

  11. Create a Device Pick target Specify memory Add Keyboard support

  12. Launch the Emulator Click on your device Press Start (will also start if you run a program) Don’t close between runs!

  13. Launch the Emulator, second screen

  14. Creating an App • Use the Android Project wizard • Mostly accept prompts • Do tutorials

More Related