Beruflich Dokumente
Kultur Dokumente
Ahsen Tahir
Talk Outline
Android Overview Android Stack
Post() method
Android Overview
Awesome Ingredients:
Open Source Platform Apache/MIT License Third party libraries rewritten Designed for Mobile Devices Limited Memory, Battery & Speed Comprehensive platform
Semiconductor Manufacturers
OHA
Mobile Operators Software Development
Bionic Libs
Native Servers
Dalvik VM
Execution
Java VM
Dalvik VM
Services (Managers)
Android Development
Development requirements Android SDK
http://developer.android.com/sdk/index.html
Android Development
IDE & Tools Android SDK
Class Library Emulator and System Images Documentation and Sample Code Developer Tools
dx Dalvik Cross-Assembler aapt Android Asset Packaging Tool adb Android Debug Bridge ddms Dalvik Debug Monitor Service
Android Development
Programming Languages Java C/C++ (Restricted official support)
http://developer.android.com/sdk/ndk/index.html
Threading in Android
A Thread is a concurrent unit of execution.
invoked, their arguments and local variables. Each virtual machine instance has at least one main Thread running when it is started; typically, there are several others for housekeeping. The application might decide to launch additional Threads for specific.
Threading in Android
Threads in the same VM interact and synchronize
by the use of shared objects and monitors associated with these objects. There are basically two main ways of having a Thread execute application code.
One is providing a new class that extends Thread and overriding its run() method. The other is providing a new Thread instance with a Runnable object during its creation.
Threading in Android
Threads share the process' resources but are able
main thread runs UI, and slow tasks are sent to background threads.
that spawns multiple threads on top of a multiprocessor system. In this case real parallelism is achieved. Consequently, a multithreaded program operates faster on computer systems that have multiple CPUs.
publish results on the UI thread without having to manipulate threads and/or handlers. An asynchronous task is defined by a computation that runs on a background thread and whose result is published on the UI thread. An asynchronous task is defined
Multithreading in Android
Using the AsyncTask Class
Thanks