Android Interview Questions and Answer

How do you declare 4 components of android in mainfestfile?
What are intent filters?
Intents filter are used to register activity, services, broadcast receiver as being capable of performing an action on a particular kind of action.
How many ways data stored in android?
Shared preferences
Internal storage
External storage
Sqlite database
Network connetion
User interface types?
Types of notification in android?
Tost notification
Status bar notification
Dialog notification
How do you find any view element into your program?
What is handler class do in android?
Handler allows yo to send and process message and runnable objects associated with a thread’s message queue.

Describe the APK format. 
The APK file is compressed the AndroidManifest.xml file, application code (.dex files), resource files, and other files. A project is compiled into a single .apk file.

What is an action? 
The Intent Sender desires something or doing some task 

What is activity?
A single screen in an application, with supporting Java code.

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 intent(class). 

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). 

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. 

How the nine-patch Image different from a regular bitmap? or Different between nine-patch Image vs regular Bitmap Image
It is one of a resizable bitmap resource which is being used as backgrounds or other images on the device. The NinePatch class allows drawing a bitmap in nine sections. The four corners are unscaled; the middle of the image is scaled in both axes, the four edges are scaled into one axis.

What Programming languages does Android support for application development?
Android applications supports using Java Programming Language. which is coded in Java and complied using Android SDK.

What is a resource?
A user defined JSON, XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.

How will you record a phone call in Android? or How to handle on Audio Stream for a call in Android?
Permissions.PROCESS_OUTGOING_CALLS: Will Allows an application to monitor, modify, or abort outgoing calls. So through that we can monitor the Phone calls.

What’s the difference between class, file and activity in android?
Class – The Class file is complied from .java file. Android will use this .class file to produce the executable apk. 
File – It is a block of resources, srbitrary information. It can be any file type. 
Activity – An activity is the equivalent of a Frame/Window in GUI toolkits. It is not a file or a file type it is just a class that can be extended in Android for loading UI elements on view. 

Does Android support the Bluetooth serial port profile?
A. Yes.

Can an application be started on powerup?
A. Yes. 

What is APK format.
The APK file is compressed AndroidManifest.xml file with extension .apk, Which have application code (.dex files), resource files, and other files which is compressed into single .apk file. 

How to Translate in android
The Google translator translates the data of one language into another language by using XMPP to transmit data. You can type the message in English and select the language which is understood by the citizens of the country in order to reach the message to the citizens. 

What is an action?
A description of something that an Intent sender desires.

What are the advantages of Android?
The following are the advantages of Android: 

* The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like Orange and AT&T will be broken by Google Android. 
* Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized 
* Innovative products like the location-aware services, location of a nearby convenience store etc., are some of the additive facilities in Android.

Where we are using receiver and service and example?
What is activity group?
 Define layout?
What is intent?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: