Following are some of the most common Android interview questions and answers
What is Android?
Android is an operating system for mobile devices.It is based on the Linux kernel.It consists of four layers:
Android is Open-source which means there is no license fee to use and develop applications for Android.It supports all the platforms, windows, mac and linux platforms.
What is Android SDK?
Android SDK is software development kit which developers can use to develop and test android applications on any device.It provides an emulator which
provides same environment as the mobile devices.So develpers can test and debug application as if it were running on the actual device.
How Android application is packaged?
Android application is pacakged using the AAPT or Android Asset Packaging Tool.AAPT takes resource files and compiles them into APKs.
How Android applications are distributed?
Android applications are distributed using the Android Package Kit (APK).This is the format of packages used by Android for distribution of apps.
What are the options to store data in Android?
Shared Preferences: private primitive data in key-value pairs.
Internal Storage: private data in device memory
External Storage: public data
SQLite Databases: private data in SQLite database
Network Connection: netweork server
What are some of the recent versions of Android?
|4.0||Ice Cream Sandwitch|
In which language can you develop Android applications?
Describe lifecycle of android application?
Activity is the building block of Android application.Activity class has several different states such as Start,Stop and Destroy.These states raises different
calbacks which se can utilize to handle the state.Activity class provides six callbacks representing the different state of the activity class:
|onCreate||executed when the activity is first created|
|onStart||executed when the activity becomes visible to the user|
|onResume||When a user navigates back to the activity|
|onPause||When a user navigates to a different activity|
|onStop||When the activity is not visible|
|onDestroy||Executed before the activity is destroyed|
What is Activity?
Activity is a screen which user interacts with.Application is composed using activities.It is subclass of ContextThemeWrapper class.