android info mostly based on pro android 3. user applications java libraries – most of java...
TRANSCRIPT
![Page 1: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/1.jpg)
Android
Info mostly based on Pro Android 3
![Page 2: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/2.jpg)
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?
![Page 3: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/3.jpg)
![Page 4: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/4.jpg)
Processor Emulator Mimics most device features (headphones,
bluetooth, battery, etc.)
![Page 5: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/5.jpg)
C-based framework
C++ Microsoft Foundation Classes
Java-based Swing Design flexibility, portability
Android UI, JavaFX, Microsoft Silverlight, Mozilla XML User Interface Language (XUL)
UI is declarative and independently themed
![Page 6: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/6.jpg)
http://androidstutorial.blogspot.com/2012/08/lifecycle-of-android-activity.html
Lifecycle is managed by the system•Limited resources•System determines priority, may shut down to free resourcesCallbacks 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
![Page 7: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/7.jpg)
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.
![Page 8: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/8.jpg)
LogCat Log.v(TAG, “Message”); Can’t use with MyLyn (remove plugin)
![Page 9: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/9.jpg)
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)
![Page 10: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/10.jpg)
![Page 11: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/11.jpg)
Manage your list of devices
Click the AVD Manager button
Click New to add a new one (this list is initially blank)
![Page 12: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/12.jpg)
Create a Device
Add Keyboard support
Specify memory
Pick target
![Page 13: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/13.jpg)
Click on your device
Press Start (will also start if you run a program)Don’t close between runs!
Launch the Emulator
![Page 14: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/14.jpg)
Launch the Emulator, second screen
![Page 15: Android Info mostly based on Pro Android 3. User Applications Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View](https://reader030.vdocument.in/reader030/viewer/2022032604/56649e5d5503460f94b55cbb/html5/thumbnails/15.jpg)
Use the Android Project wizard
Mostly accept prompts Do tutorials