Android Questions & Answers (Compiled from UPSC, SSC ,PSC ,IBPS previous question papers)

  • What is AIDL?

  • AAIDL, or Android Interface Definition Language, handles the interface requirements between a client and a service so both can communicate at the same level through interprocess communication or IPC. This process involves breaking down objects into primitives that Android can understand. This part is required simply because a process cannot access the memory of the other process.
  • When does ANR occur?

  • AThe ANR dialog is displayed to the user based on two possible conditions. One is when there is no response to an input event within 5 seconds, and the other is when a broadcast receiver is not done executing within 10 seconds.
  • How to Translate in Android?

  • AAndroid uses Google translator to translate data from one language into another language and placed as a string while development
  • What is the importance of Default Resources

  • AWhen default resources, which contain default strings and files, are not present, an error will occur and the app will not run. Resources are placed in specially named subdirectories under the project res/ directory.
  • What is a Sticky Intent in android?

  • ASticky Intent is also a type of intent which allows the communication between a function and a service for example,sendStickyBroadcast() is perform the operations after completion of intent also.
  • Enumerate the steps in creating a bounded service through AIDL.


  • A

    1. create the .aidl file, which defines the programming interface
    2. implement the interface, which involves extending the inner abstract Stub class as well as implanting its methods.
    3. expose the interface, which involves implementing the service to the clients.

  • What is the AndroidManifest.xml?

  • AThis file is essential in every application. It is declared in the root directory and contains information about the application that the Android system must know before the codes can be executed.
  • What is DDMS?

  • A

    DDMS stands for Dalvik Debug Monitor Server. It gives the wide array of debugging features:

    1. Port forwarding services
    2. Screen capture
    3. Thread and heap information
    4. Network traffic tracking
    5. Location data spoofing
  • What role does Dalvik play in Android development?

  • ADalvik serves as a virtual machine, and it is where every Android application runs. Through Dalvik, a device is able to execute multiple virtual machines efficiently through better memory management.
  • What is sleep mode in Android?

  • AIn sleep mode, CPU is slept and doesn't accept any commands from android device except Radio interface layer and alarm.
  • How can the ANR be prevented?

  • AOne technique that prevents the Android system from concluding a code that has been responsive for a long period of time is to create a child thread. Within the child thread, most of the actual workings of the codes can be placed, so that the main thread runs with minimal periods of unresponsive times.