Wednesday 11 February 2015

25 TOP Android Interview Questions and Answers pdf (Page 1)

Below are some important Android interview questions which are asked in most MNC company interviews for beginners or professionals.

1. What is android?
Android is a stack of software for mobile devices which has Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes Java languages byte code which later transforms into .dex format files.

2. What is activity?
A single scre an applicationwith supporting Java code

3. What is intent in Android?
A class (Intent) will describes what a caller desires to do. The caller will send this intent to Android’s intent resolver, which finds the most suitable activity for the intent. E.g. opening a PDF document is
an intent, and the Adobe Reader apps will be the perfect activity for that intentcIass).

4. What is a Sticky Intent?
sendStickyBroadcast() performs a sendBroadcast (Intent) known as sticky, i.e. the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of registerReceiver (BroadcastReceiver, IntentFilter). In all other ways, this behaves the same as sendBroadcast(Intent)
One example of a sticky broadcast sent via the operating system is
ACTION_BATTERY_CHANGED. When you call registerReceiver() for that action — even with a null BroadcastReceiver — you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the batterywithout necessarily registering for all future state changes in the battery.
Is there anyway to determine if an Intent passed into a BroadcastReceiver’s onReceive is the result of a sticky Boradcast Intent, or if it was just sent?
Example for sticky broadcast
When you call registerReceiver( ) for that action -- even with a null BroadcastReceiver — you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the battery without necessarily registering for all future state changes in the battery.

5. What Programming languages does Android support for application development?
Android applications su ppor using Java programming Language. which is coded in Java and complied using Android SDK.
More Questions & Answers :-

No comments:

Post a Comment