Select chapter



basics (6.papers)
activities (5.papers)
services (2.papers)
threads (2.papers)
receivers (1.papers)
advanced android (2.papers)
SQLite database (1.papers)
adapters (1.papers)
adb and ddms (1.papers)
widgets (1.papers)
fragments (1.papers)
UI (1.papers)
Hide

Sponsored Links


  

android interview questions and answers

Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
3
What  is the full form of DVM in Android?
  1. Devices Virtual Memory
  2. Dalvik Virtual Machine
  3. Debuggable Virtual Machine
  4. none
Show Answer
Share Facebook gmail Twitter
4
What is the difference between DVM and JVM? Why Android opted for DVM?
  1. DVM is faster than JVM, and DVM is under free license.
  2. Oracle did not allow Google to use JVM. So Google started using DVM for its android.
  3. JVM was not free that's why android opted for DVM
  4. JVM is not meant for java programs. Android uses java internally it can't use JVM in it. So Android opted for DVM.
Show Answer
Share Facebook gmail Twitter
5
Which layer does Dalvik Virtual Machine sit on?
  1. Driver layer
  2. Library layer
  3. Framework layer
  4. Application layer
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
7
What is the importance of version code and version name attributes in manifest file?
  1. It will tell your activity's version no and name.
  2. It tells your applications version number and name. Other than this no use.
  3. No use. It is just for our reference.
  4. It tells your applications version number and name. It will be used when you want to update your app in google play store
Show Answer
Share Facebook gmail Twitter
8
How many manifest files will be there in an android application?
  1. Maximum one is allowed
  2. It can have multiple manifest files
  3. 1 and 2, both are correct
  4. 1 and 2 both are wrong
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
10
Give two examples for configuration changes in Android?
  1. Flipping the phone
  2. Keyboard on
  3. Language settings change
  4. All of the above
Show Answer
Share Facebook gmail Twitter
11
What is the difference between implicit intent and explicit intent, give one example?
  1. Implicit intent - Intent with out target component name; Explicit intent - Intent with target component name.
  2. Implicit intent - Intent with target component name; Explicit intent - Intent with out target component name.
  3. Use implicit intent If you want to start one activity from other activity with in the same application.
Show Answer
Share Facebook gmail Twitter
12
How many components are there in an intent?
  1. Action
  2. Data & data type
  3. Category and extras
  4. All above three
Show Answer
Share Facebook gmail Twitter
13
Is it possible to give more than one action in an intent?
  1. No. Intent should have only one action.
  2. Yes. Intent can have more than one action.
  3. No. Intent can have 0 or maximum one action.
Show Answer
Share Facebook gmail Twitter
14
Is it possible to give more than one category in a given intent?
  1. No. Only one category is allowed
  2. Yes. You can have 0 or n number of categories in intent
  3. Yes. But you have to make sure that intent will have at least one category.
Show Answer
Share Facebook gmail Twitter
15
What is the importance of putExtra() method in Android? How is it different from setData() ? Anyway both are passing data, then what is the difference?
  1. Both putExtra() and setData() are used for same purpose i.e. to pass data to other component.
  2. setData() - is to pass data on which to take action. putExtra() - is to send extra information about this intent.
  3. setData() - is to send extra information about this intent. putExtra() - is to pass data on which to take action.
  4. Logically both are same, so one can omit setData(), and pass all data through putExtra() only.
Show Answer
Share Facebook gmail Twitter
16
If I send a broadcast with implicit intent, and there is no matching intent-filter, then what will happen?
  1. Compile time error
  2. It will throw run time exception - BroadcastReceiverNotFoundException, and crashes if it is not handled properly.
  3. Nothing will happen, somehow it launches target component
  4. Nothing will happen, but it will not launch any receiver.
Show Answer
Share Facebook gmail Twitter
17
What will happen if there is no action in an implicit intent, will it trigger any component?
  1. Will pass the action test if intent-filter has at least one action.
  2. Will pass the action test if intent-filter also doesn't have any action.
  3. Will pass the action test only if intent has at least one action.
  4. Will pass the test if intent is explicit. In case of explicit intent it will test for intent resolution.
Show Answer
Share Facebook gmail Twitter
18
What will happen if an activity is started with implicit intent, and there is no matching intent-filter?
  1. compile time error
  2. it will throw run time exception - activityNotFoundException, and crashes if it is not handled properly.
  3. Nothing will happen, some how it launches target component
  4. Nothing will happen, but it will not launch any new screen.
Show Answer
Share Facebook gmail Twitter
19
How to make a phone call from an android application?
  1. Intent in = new Intent();  in.setAction(Intent.ACTION_DIAL); in.setData(Uri.parse("tel:12345")); startActivity(in);
  2. Intent in = new Intent();  in.setAction(Intent.ACTION_CALL); in.setData(Uri.parse("tel:12345")); startActivity(in);
  3. Intent in = new Intent();  in.setAction(Intent.ACTION_CALL); in.setData("12345"); startActivity(in);
  4. Intent in = new Intent();  in.setAction(Intent.ACTION_DIAL); in.setData("12345"); startActivity(in);
Show Answer
Share Facebook gmail Twitter
20
What is the difference between intent, sticky intent, and pending intent?
  1. intent - is a message passing mechanism between components of android; Sticky Intent - Sticks with android, for future broad cast listeners; Pending Intent - Will be used when some one wants to fire an intent in future.
  2. intent - is a message passing mechanism between components of android except for Content Provider; Sticky Intent - Sticks with android, for future broad cast listeners; Pending Intent - Will be used when some one wants to fire an intent in future.
  3. intent - is a message passing mechanism between components of android except for Content Provider; Sticky Intent - Sticks with android, for future broad cast listeners; Pending Intent - Will be used when some one wants to fire an intent in future and may be at that time that app is not alive.
  4. same as 3rd option, but sticky and pending intent are same.
Show Answer
Share Facebook gmail Twitter
Read more papers :