TCS – Android Interview Questions
Here is the list Android Interview Questions which are recently asked in TCS company. These questions are included for both Freshers and Experienced professionals.
1. What is shared preferences in android?
Shared Preferences is the way in which one can store and retrieve small amounts of primitive data as key/value pairs to a file on the device storage such as String, int, float, Boolean that make up your preferences in an XML file inside the app on the device storage.
2. What are the key components in android architecture?
- Linux kernel.
- Libraries.
- Android Libraries.
- Android Runtime.
- Application Framework.
- Applications
3. What are the different storages available in android?
There are four type of storage that android are:- Internal file storage: Store app-private files on the device file system.
- External file storage: Store files on the shared external file system.
- Shared preferences: Store private primitive data in key-value pairs.
- Databases: Store structured data in a private database.
4. What is a Sticky Intent in android?
Sticky Intent is also a type of the Intent which allows communication between a function and a service sendStickyBroadcast(), performs a sendBroadcast known as sticky, the Intent you are sending stays around after the broadcast is complete.
5. How is the use of web view in Android?
Android WebView is used to display web page in android. The web page can be loaded from same application or URL. It is used to display online content in android activity. The loadUrl() and loadData() methods of Android WebView class are used to the load and display web page.
6. Why can't you run java byte code on Android?
Android uses Dalvik virtual machine instead of Java VM. To run a Java Bytecode you need Java Virtual Machine. Java in computers and Android uses a separate environment to run their code.
7. What are application Widgets in android?
App Widgets are miniature application views that can be embedded in other applications and the receive periodic updates. These views are referred to as Widgets in the user interface, and you can publish one with an App Widget provider.
Free PDF : Get our updated Android Course Content pdf
8. Name the different data storage options available on the Android platform.
There are four type of storage are:- Internal file storage: Store app-private files on the device file system.
- External file storage: Store files on the shared external file system.
- Shared preferences: Store private primitive data in key-value pairs.
- Databases: Store structured data in a private database.
9. What are the different data types supported by AIDL?
The different data types supported by AIDL are:- All primitive types in the Java programming language.
- Arrays of primitive types such as int[]
- String.
- CharSequence.
- List.
- Map.
10. Explain the term ANR in Android
The term ANR in Android Stands for "Application Not Responding.
11. What is the importance of setting up permission in Android application development?
Permission allows certain restrictions to be imposed primarily to protect the data and code. Without this, codes could be compromised, resulting in defects in the actual function.
12. State the components which are necessary for a New Android Project
There are four different types of app components are:- Activities.
- Services.
- Broadcast receivers.
- Content providers.
13. Explain different launch modes in Android
The different launch modes in Android are:- standard.
- singleTop.
- singleTask.
- singleInstance.
- Intent Flags.
14. What is the AndroidManifest.xml file and why do you need this?
xml file with precisely that name at the root of the project source set. The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play. The Android build tools use this to determine the location of the code entities when building your project.
Get Answer for all the above questions and place in your dream company
Wants to Become an Expert
in Android?
Know MoreTOP MNC's ANDROID INTERVIEW QUESTIONS & ANSWERS
Here we listed all Android Interview Questions and Answers which are asked in Top MNCs. Periodically we update this page with recently asked Questions, please do visit our page often and be updated in Android.