Muhammad Adnan
lets talk about mobile application development... android :)
Wednesday, May 25, 2016
Sunday, January 8, 2012
Android Development Part II Main Building Blocks
There are some basic components which must be required to develop any android based application:
Activity
Activity is single screen in android application. As web sites contains web pages for user interface same as android application consists of 1 or more Activity screens.
Activity life cycle
Activity manager is used to manage activity like created, destroying, pausing, resuming any activity. Activity starting state is most expensive, which consume enough memory, processor time and battery. Activity can be destroy, stopped, pause and resume.
Intents
Intents are used to invoke/activate other applications or activity (screens). Intents are of two types, explicit or implicit, explicit intents gives fully qualified name of the component to activate it. Implicit intents use type of activity/component to call it.
Services
Services/daemon runs as background process, which doesn't has any activity or graphical user interface. Services are required for such requirements when user intervention are not required and task needs to be run in background like when you are listening songs and doing other tasks like browsing or playing games. music service is running in background.
Content Providers
Content providers are provided between application for persisting data. Content providers API used to create/update/retrieve/delete data/records in database and in case of android SQLite is used.
Broadcast Receivers
Android system makes system wide notifications so using Broadcast receiver your android application is capable of receiving and publishing such notifications like battery low, SMS arrives, call coming, wifi not available.
for starters Activity and Intents are most important to learn to start with android application development so
happy androiding! ;)
Saturday, January 7, 2012
Android Development Part 1 Overview
Android is fastest growing mobile operating system platform which is bought/owned/executed by Google Inc. Android's software development kit SDK has been enough mature. following is list of android versions along with version name.
Android version API level Nickname
Android 1.0 1
Android 1.1 2
Android 1.5 3 Cupcake
Android 1.6 4 Donut
Android 2.0 5 Eclair
Android 2.01 6 Eclair
Android 2.1 7 Eclair
Android 2.2 8 Froyo (frozen yogurt)
Android 2.3 9 Gingerbread
Android 2.3.3 10 Gingerbread
Android 3.0 11 Honeycomb
Android is built on top of Linux OS which is well known for security, memory management, portability and features. Android and Linux's native libraries are built on C/C++ but we can build their native application using Java. Java code executed by Java virtual machine but a new virtual machine built for it namely Dalvik.
Dalvik
Dalvik is android application virtual machine which is built by Google team specifically for mobile devices. Dalvik was needed for following reasons: JVM is not license free JVM is built to be one size fits all solution.
Java code to executable Java code converted to Java Byte code using Java compiler, then Java byte code converted to Dalvik byte code using Dex compiler Dalvik byte code converted to Dalvik executable using Dalvik Virtual Machine
Android Development Tools: Android application is suppose to built using Android SDK and Tools which can be downloaded from /ANDROID SDK Download I personally would suggest you to download Eclipse Hellios with ADT Plugin as code editor and Android SDK
Happy androiding!
Android version API level Nickname
Android 1.0 1
Android 1.1 2
Android 1.5 3 Cupcake
Android 1.6 4 Donut
Android 2.0 5 Eclair
Android 2.01 6 Eclair
Android 2.1 7 Eclair
Android 2.2 8 Froyo (frozen yogurt)
Android 2.3 9 Gingerbread
Android 2.3.3 10 Gingerbread
Android 3.0 11 Honeycomb
Android is built on top of Linux OS which is well known for security, memory management, portability and features. Android and Linux's native libraries are built on C/C++ but we can build their native application using Java. Java code executed by Java virtual machine but a new virtual machine built for it namely Dalvik.
Dalvik
Dalvik is android application virtual machine which is built by Google team specifically for mobile devices. Dalvik was needed for following reasons: JVM is not license free JVM is built to be one size fits all solution.
Java code to executable Java code converted to Java Byte code using Java compiler, then Java byte code converted to Dalvik byte code using Dex compiler Dalvik byte code converted to Dalvik executable using Dalvik Virtual Machine
Android Development Tools: Android application is suppose to built using Android SDK and Tools which can be downloaded from /ANDROID SDK Download I personally would suggest you to download Eclipse Hellios with ADT Plugin as code editor and Android SDK
Happy androiding!
Subscribe to:
Posts (Atom)