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

1
How to send an SMS in android through code ? 
Eg: If I want to send a message to destination number "9741200300", then what is the correct code to do it?
  1. SmsManager s = SmsManager.getDefault();
            s.sendTextMessage("9741200300", null, 
                            "Hi how are you?", null, null);
  2. SmsManager s = SmsManager.getDefault();
            s.sendTextMessage(null, "9741200300", 
                            "Hi how are you?", null, null);
  3. SmsManager s = SmsManager.getDefault();
            s.sendTextMessage("9741200300", "9741200300", 
                            "Hi how are you?", null, null);
  4. SmsManager s = new SMSManager();
            s.sendTextMessage(null, "9741200300", 
                            "Hi how are you?", null, null);
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
3
What is rooting?
  1. It is the process of allowing users of smartphones, and other android enabled devices to get the privileged permissions (root access).
  2. Rooting allows to run any application that requires admin level permissions in the android system & can perform any operation which is not allowed to a normal android user.
  3. Rooting is done to overcome the limitations set by carriers and OEM (original equipment manufacturers) on a phone. Rooted phone can be used anywhere with any carrier network.
  4. All are true
Show Answer
Share Facebook gmail Twitter
4
How to take screenshot in android?
  1. Open camera and take a picture of that screenshot.
  2. Connect phone to eclipse, open DDMS, click devices, click on camera button (on top), which opens the current screen of the phone or emulator, click save to save that screen shot as an image.
  3. Right now there is no support to take screen shots in android.
  4. None
Show Answer
Share Facebook gmail Twitter
5
How to root an android phone?
  1. 1) Backup current ROM.
    2) Turn on USB debugging.
    3) May have to install Android SDK in the computer.
    4) Unlock boot loader by logging in to your oem site.
  2. Android doesn't support rooting.
Show Answer
Share Facebook gmail Twitter
6
What are the different version names of android?*
  1. 1.5 Cupcake
    1.6 Donut
    2.0, 2.1 Eclair
    2.2 Froyo
    2.3.x Ginger bread
    3.x Honey comb
    4.0.x Ice cream sandwitch
    4.1 Jelly bean
    4.2 Kitkat
  2. 1.5 Cupcake
    1.6 Donut
    2.0, 2.1 Eclair
    2.2 Froyo
    2.3.x Ginger bread
    3.x Honey comb
    4.0.x Ice cream sandwitch
    4.1, 4.2, 4.3 Jelly bean
    4.4 Kitkat
    5.X Lollipop
    6.0.X Marshmallow
  3. 1.5 cupcake
    1.6 donut
    2.0 eclair
    2.1, 2.2 froyo
    2.3.x ginger bread
    3.x honey comb
    4.0.x ice cream sandwitch
    4.1, 4.2, 4.3 jelley bean
    4.4 kitkat
  4. 1.5 cupcake
    1.6 donut
    2.0, 2.1 eclair
    2.2 froyo
    2.3.x ginger bread
    3.x honey comb
    4.0.x ice cream sandwitch
    4.1, 4.2, 4.3 jelley bean
    4.4 key lime pie
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
8
What is android sdk?
  1. Android sdk contains set of libraries, APIs, and set of tools to develop, test, and debug android applications for android powered devices.
  2. Android sdk comes with jdk built in.
  3. Both options are true
  4. None
Show Answer
Share Facebook gmail Twitter
9
What is an Android emulator?
  1. It is a tool used to run android applications without having real hardware device. This can be used to test an Android application without having a real physical device.
  2. Android emulator simulates the real hardware device environment in workstations where programmer is developing android applications.
  3. Android emulator tool comes as a part of Android SDK while downloading. Emulator.exe tool is part of android-sdk\tools folder.
  4. All are true
Show Answer
Share Facebook gmail Twitter
10
What is Android mobile?
  1. The mobile that runs on Android O.S and android platform is called as android mobile. Eg: Samsung Galaxy phones, LG optimus phones, etc.
  2. The mobile released by Google is called as Android mobile. Eg: Samsung Nexus S phone.
  3. The mobile which contains Google applications and Android applications is called as Android mobile.
  4. All are true
Show Answer
Share Facebook gmail Twitter
11
What is an Android device manager?
  1. Android device manager is a Google tool with which user can locate a phone (if stolen).
    Optionally user can ring the phone, lock the phone, and erase the data on the phone. But for that user should be registered with a Google account with his mobile number.
  2. Location data from user device will be collected and sent to Google.
    Device location is approximate. To track your mobile using Android device manager visit https://www.google.com/android/devicemanager
  3. Both are correct
  4. None
Show Answer
Share Facebook gmail Twitter
12
What is Android rooting?
  1. Rooting an android phone to get admin level rights is called as android rooting.
  2. Generally rooting will be done to overcome carrier settings and to use a mobile in any carrier network. Rooting is also useful to install an android application which might do operations that requires admin rights, which are not available for normal users.
  3. Rooting a device may void the warranty and guaranty of your phone. Rooting may also brick your phone and it may become useless. Proper care has to be taken while rooting a device. It is not advisable to root a device withour proper knowledge.
  4. All are true
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
14
What is MODE_PRIVATE when creating shared preference file?
  1. Only the process or application which has created that preference file can access it. Other applications can't access it.
  2. Only the activity which has created that preference file can access it. Other activities can't access it.
  3. Only the thread which has created that preference file can access it. Other threads can't access it.
  4. Only the process or application which has created that preference file can write to it. other applications can only access it.
Show Answer
Share Facebook gmail Twitter
15
How to share preference file to other activities of same application?
  1. Use getPreferences(MODE_PRIVATE);
  2. Use getSharedPreferences("name", MODE_PRIVATE);
  3. Use getSharedPreferences("name", MODE_WORLD_READABLE);
  4. Use getSharedPreferences("name", MODE_WORLD_WRITABLE);
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
17
How to send an email in Android through code? What is the correct intent to send an email?
  1. Intent in = new Intent(Intent.ACTION_SEND);
            in.setType("message/rfc822");
            in.putExtra(Intent.EXTRA_EMAIL, new String[]{"user@gmail.com",
                            "more@gmail.com"});
            in.putExtra(Intent.EXTRA_SUBJECT, "Hey imp!");
            in.putExtra(Intent.EXTRA_TEXT, "WHAT ARE YOU DOING?");
            
            startActivity(Intent.createChooser(in, "Select one option"));
  2. Intent in = new Intent(Intent.ACTION_SEND_MAIL);
            in.setType("message/rfc822");
            in.putExtra(Intent.EXTRA_EMAIL, new String[]{"user@gmail.com",
                            "more@gmail.com"});
            in.putExtra(Intent.EXTRA_SUBJECT, "Hey imp!");
            in.putExtra(Intent.EXTRA_TEXT, "WHAT ARE YOU DOING?");
            
            startActivity(Intent.createChooser(in, "Select one option"));
  3. Intent in = new Intent(Intent.ACTION_SEND);
            in.setType("*/*");
            in.putExtra(Intent.EXTRA_EMAIL, new String[]{"user@gmail.com",
                            "more@gmail.com"});
            in.putExtra(Intent.EXTRA_SUBJECT, "Hey imp!");
            in.putExtra(Intent.EXTRA_TEXT, "WHAT ARE YOU DOING?");
            
            startActivity(Intent.createChooser(in, "Select one option"));
  4. Intent in = new Intent(Intent.ACTION_SEND_MAIL);
            in.setType("*/*");
            in.putExtra(Intent.EXTRA_EMAIL, new String[]{"user@gmail.com",
                            "more@gmail.com"});
            in.putExtra(Intent.EXTRA_SUBJECT, "Hey imp!");
            in.putExtra(Intent.EXTRA_TEXT, "WHAT ARE YOU DOING?");
            
            startActivity(Intent.createChooser(in, "Select one option"));
Show Answer
Share Facebook gmail Twitter
18
What is the priority of an empty process in android?
  1. empty process(5)
  2. service process priority (4)
  3. foreground process(1)
  4. service process priority (3)
Show Answer
Share Facebook gmail Twitter
19
How to access shared preference file of one application from other application?
  1. By using getPreferences(MODE_PRIVATE);
  2. By using getPreferences(MODE_WORLD_READABLE);
  3. By using getSharedPreferences("name",MODE_WORLD_READABLE);
  4. No, it is not possible.
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Read more papers :