Show List

Android App Development Interview Questions-2

  • What is Android Activity?
    Answer: An Activity is a single, focused thing that a user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI.

  • What is Android Service?
    Answer: A Service is an application component that can perform long-running operations in the background without a user interface.

  • What is an Intent in Android?
    Answer: An Intent is a messaging object used to request an action from another app component such as activities, services, and broadcast receivers.

  • What is the difference between Serializable and Parcelable in Android?
    Answer: Serializable is a default Java interface used to serialize an object into a stream of bytes, while Parcelable is an Android specific interface that is faster than Serializable and is used to serialize an object for communication between Android components.

  • What is an Android Fragment?
    Answer: A Fragment represents a reusable portion of your app's user interface. A Fragment typically defines a part of a UI that can be placed inside an Activity.

  • What is the difference between a Fragment and an Activity in Android?
    Answer: An Activity is a complete screen with a user interface, while a Fragment is a portion of a screen with its own user interface. Fragments can be combined within an Activity to create a complex UI.

  • What is a ContentProvider in Android?
    Answer: A ContentProvider is an Android component that provides a standardized way of accessing and manipulating data across different applications.

  • What is an AsyncTask in Android?
    Answer: An AsyncTask is an Android class used to perform background operations and update the UI thread with the results of those operations.

  • What is a Broadcast Receiver in Android?
    Answer: A Broadcast Receiver is an Android component used to respond to system-wide events, such as low battery or screen on/off.

  • What is a Loader in Android?
    Answer: A Loader is an Android class used to load data asynchronously and monitor the results.

  • What is a Notification in Android?
    Answer: A Notification is a message that appears in the notification area of the status bar on an Android device.

  • What is a PendingIntent in Android?
    Answer: A PendingIntent is a way to pass a future Intent to another application or system service.

  • What is an Android ContentResolver?
    Answer: A ContentResolver is an Android class used to retrieve and manipulate data stored by ContentProviders.

  • What is an Android BroadcastReceiver?
    Answer: A BroadcastReceiver is an Android component used to respond to system-wide events, such as low battery or screen on/off.

  • What is an Android Context?
    Answer: A Context is an Android class used to provide access to application-specific resources, such as preferences and databases.

  • What is the Android Application class?
    Answer: The Application class is a base class in Android used to maintain global application state and provide a common interface to application-specific resources.

  • What is the difference between View.GONE and View.INVISIBLE in Android?
    Answer: View.GONE removes the view from the layout and frees up the space it occupied, while View.INVISIBLE hides the view but still takes up space in the layout.

  • What is an Android Handler?
    Answer: A Handler is an Android class used to communicate between different threads, allowing you to schedule messages and runnables to be executed at a later time.

  • What is an Android Manifest file?
    Answer: The AndroidManifest.xml file is a configuration file used by Android to describe the components of an application and their permissions.

  • What is an Android resource file?
    Answer: An Android resource file is a file that contains application-specific resources, such as images, layouts, and strings. These resources can be accessed using a unique ID.

    Leave a Comment


  • captcha text