Android Smartphones are the most widely used phones in the world. More than 2 million apps are present on Play Store for Android users. Thus, we can say that Android developers are in high demand. Following android interview questions will help you in preparing for an interview.
Android is the operating system that runs on smartphones, tablets, watches, televisions, and even in automobiles. It is based on Linux and open source.
Android version names are based on desserts. For example, Android version 5.0 is popularly known as Lollipop
Java in Android SDK and C/C++ in Android NDK
Activity is a window that contains user interface components like buttons, images, TextView, etc.
A Fragment is user interface part of an Activity. We can have more than one fragment in an activity.
onCreate(), onStart(), onResume(), onPause(), onStop(), onRestart(), and onDestroy()
LinearLayout, RelativeLayout, and GridLayout
LinearLayout is a layout manager that arranges view in a single row or column. In other words, use to stack children horizontally or vertically.
It is a view group that allows placing of views relative to each other.
Material Design is a visual design guide to make the app beautiful and provide an amazing experience. It was introduced in Android Lollipop.
RecyclerView is considered a flexible version of ListView design to run the app efficiently.
CardView is a view group that displays information in a card. It has rounded corners and shadow. It inherits FrameLayout class.
Intent enables us to communicate with different components present in Android.
There are two types of Intent-
In implicit intent, we do not specify a component name. Just indicate the action to be performed and data on which it is to be done.
In this, we specify the recipient name. It is used to communicate with the components present in our app such as if we want to move between activities then we use explicit intent.
With the help of Intent Filter, we specify the intent in which the component is interested in receiving. It is specified in AndroidManifest.xml file.
There are 5 logcats in Android which are-
Toast.makeText(getApplicationContext(), "Toast Example", Toast.LENGTH_LONG).show();
AndroidManifest.xml file is used to declare permissions.
onPreExecute(), doInBackground(), onProgressUpdate(), onPostExecute()
It is a way to store data in the form of key-value pair.
It is used to expose data to other application.
This component of Android is used to listen for a particular event. It is specified in AndroidManifest.xml file.
Use to run long running tasks that do not need user interaction.
Picasso and Glide