Android Interview Questions and Answers
Question - 101 : - What is DEX?
Answer - 101 : -
Samsung DeX is a feature that is included on some high-end Samsung handheld devices. It enables users to extend their device into a desktop-like experience by connecting a keyboard, mouse, and monitor. Samsung DeX is also a platform that turns your smartphone into a desktop computing experience.
Question - 102 : - What is a Spannable in Android?
Answer - 102 : -
Scannable is a Spanned, adding in the ability to modify the spans to add or remove formatting, but not to modify the text itself.
Question - 103 : - What is a SurfaceView?
Answer - 103 : -
A SurfaceView is a view in a view hierarchy that has its own separate Surface. It also provides a dedicated drawing surface embedded inside of a view hierarchy.
Question - 104 : - What is WebView in Android?
Answer - 104 : -
Android WebView is a system component that allows Android apps to display web content. It is pre-installed on your device and should be kept up to date to ensure you have the latest security updates and other bug fixes.
Question - 105 : - What is rooting in Android?
Answer - 105 : -
Rooting is the process of attaining users privileged control known as root access over various Android subsystems to allowing Android mobile operating systems to run on smartphones, tablets, and other devices.
Question - 106 : - What is a ViewHolder Pattern?
Answer - 106 : -
A view holder design pattern is used to speed up the rendering of your ListView to make it work smoothly, findViewById is quite expensive when used each time a list item is rendered, it must traverse your layout hierarchy.
Question - 107 : - What is Android RecyclerView?
Answer - 107 : -
Android Recycler View is a version of ListView. It has improved performance and other benefits. You can use RecyclerView and CardView together, which creates both lists and grids very easily.
Question - 108 : - What are launch modes?
Answer - 108 : -
It is an instruction for Android OS that specifies how the activity should be launched or performed. The activities are performed into two areas, which are:
- Tasks: It’s a collection of activities, with which the users interact when they perform certain jobs. An application contains a number of activities.
- Back Stack: Back stack in a back stack the activities are arranged with the order in which each is opened. This maintained stack called back stack.
Question - 109 : - Explain sticky intent?
Answer - 109 : -
Sticky intent sticks with the Android for future broadcast listeners. For instance, if Battery low event occurs then that intent will be stick with Android, so that if any future user requested for Battery – Low, it will be fired.
Question - 110 : - What is the difference between Serializable and parseable?
Answer - 110 : -
Serializable is a standard Java interface. It is not a part of the Android SDK. Its simplicity is its biggest beauty. Just by implementing this interface the POJO will be ready to jump from one particular activity to another. There is another interface known as parseable. It is a part of the Android SDK. Paracelable was specifically designed in a way that there is no reflection left while using.