Interview Questions on Android
1.What is Android?
Android is an open source operating system that is mainly used on mobile devices like tablets and Smartphones. Its operations are mainly based on the Linux kernel system which comprises of rich elements that enable developers to develop and run apps that are able to carry out both basic and advanced functions.
2.What are intents?
Intents display messages of notification from within the Android enabled device to the user. Intents are used to notify the user when a particular state occurs, and users have the opportunity to respond to the notification.
3.What is ANR?
ANR is the acronym for Application Not Responding. When an application is unresponsive for a long time, the dialogue shows up to let the user know about the situation.
4.What is Orientation?
Orientation dictates whether the LinearLayout is represented as a column or a roll, when it is set using setOrientationa(). The values are set as VERTICAL or as HORIZONTAL.
5.What is adb?
Adb simply stands for Android Debug Bridge. It presents developers with the power to perform shell commands that are remote. Its major work is to permit and direct communication towards and from the emulator port.
6.What is the Google Android SDK?
Google Android SDK is a set of tools required by developers to enable them write apps on Android enabled devices. It has a graphical interface which imitates an Android handheld environment, enabling them in testing and debugging their codes.
7.What is Android Architecture?
Android Architecture consists of 4 main elements
- Linux Kernel
- Android Framework
- Android Applications
8.How can we use escape characters as attributes?
Escape characters usually have backlashes before them. For instance, one can create a newline character with the use of ‘\\n’
9.Differentiate between Activities and Services
A user can close or terminate activities anytime he/she wishes to do so. Services, on the other hand, run behind the scene and are able to act in an independent manner. Whether or not there are certain activities being executed, the majority of services run continuously.
10. What is Context?
A Context is an Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcasting and receiving intents, etc.