Android Interview Questions and Answers
Question - 51 : - Enlist major components of Android App?
Answer - 51 : -
The major components of the Android App are listed below:
- Activities
- Services
- Content Providers
- Intents
- Broadcast Receivers
- Widgets
- Notifications
- Views
- Fragments
- Resources
- App APK files
- Layout XML Files
Question - 52 : - What is a frament in Android?
Answer - 52 : -
The fragment in Android is as follows.
- A fragment has its own layout and behavior with its own life cycle callbacks.
- Fragments can be added or removed in an activity while the activity is running and used in multiple activities.
- Multiple fragments can be combined in a single activity to build a multi-pane UI.
- The fragment life cycle is closely related to the life cycle of its host activity which means when the activity is paused, all the fragments available in the activity will also be stopped
- Fragments were added to the Android API in the Honeycomb version of Android API version 11.
Question - 53 : - List some storage options available in Android?
Answer - 53 : -
Some storage options available in Android are listed below:
- Shared Preferences
- Internal Storage
- External Storage
- SQLite database
Question - 54 : - What is APK format?
Answer - 54 : -
The full form of the APK is Android Package Kit which is the file format for applications used on the Android operating system;
APK files are compiled with Android Studio, which is the official integrated development environment (IDE) for building Android software. An APK file includes all of the software program’s code and assets.
Question - 55 : - What is ANR in Android?
Answer - 55 : -
ANR is an abbreviation for Application not responding that describes an unresponsive Android app. an "ANR" event is triggered, When an app is running on an Android device and stops responding.
Question - 56 : - What is DVM?
Answer - 56 : - The DVM is an abbreviation for Dalvik Virtual Machine which is used to run Android applications. The DVM executes Dalvik bytecode.
Question - 57 : - What is a BuildType in Gradle?
Answer - 57 : -
Build Type is a build and packaging settings like signing configuration for a project. For instance, debug and release build types. The debug build type will use an android debug certificate for packaging the APK file. While the release build type will use a user-defined release certificate for signing and packaging the APK.
Question - 58 : - What is Armv7?
Answer - 58 : -
ARMv7 is a RISC(reduced instruction set computer) processor, with a Load/Store memory model. A Load/Store memory mode means memory access is restricted to specific instructions. An ARMV7 processor is a family of CPUs based on the RISC architecture developed by Advanced RISC Machines (ARM).
Question - 59 : - What is an activity in Android?
Answer - 59 : -
An Android activity is a screen of the Android app's user interface. It is similar to windows in a desktop application. An Android app may contain one or more activities that mean one or more screens
Question - 60 : - What is an intent in Android?
Answer - 60 : -
Android uses Intent for the communication between the components of an Application. The intent is the object which is used in android for passing the information among Activities in an Application. It also provides connectivity between two apps.