+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

Android Interview Questions

These Android Interview Questions and answers have been designed for beginner and professional. Here you can find the answers of various interview Questions related to Android.

What is Android?

Android is an open-source, linux-based operating system that is used in mobiles, tablets, televisions etc.

Who is the founder of Android?

Andy Rubin.

What are the code names of android?
  • Aestro
  • Blender
  • Cupcake
  • Donut
  • Eclair
  • Froyo
  • Gingerbread
  • Honycomb
  • Ice Cream Sandwitch
  • Jelly Bean
  • Kitkat
  • Lollipop
Does android support other language than java?

Yes, android app can be developed in C/C++ also using android NDK (Native Development Kit). It makes the performance faster. It should be used with android SDK.

What are the core building blocks of android?

The core building blocks of android are:

  • Activity
  • View
  • Intent
  • Service
  • Content Provider
  • Fragment etc.

Android Interview Questions

What are the advantages of android?
  • Open-source: It means no licence, distribution and development fee.
  • Platform-independent: It supports windows, mac and linux platforms.
  • Supports various technologies: It supports camera, bluetooth, wifi, speech, EDGE etc. technologies.
  • Highly optimized Virtual Machine: Android uses highly optimized virtual machine for mobile devices, called DVM (Dalvik Virtual Machine)
What is activity?

It is a kind of message or information that is passed to the components. It is used to launch an activity, display a web page, send sms, send email etc. There are two types of intents in android:

  • Implicit Intent
  • Explicit Intent

What are the life cycle methods of android activity?

There are 7 life-cycle methods of activity. They are as follows:

  • onCreate()
  • onStart()
  • onResume()
  • onPause()
  • onStop()
  • onRestart()
  • onDestroy()
What is implicit intent in android?

Implicit intent is used to invoke the system components

What is service in android?

Android service is a component that is used to perform operations on the background such as playing music, handle network transactions, interacting content providers etc. It doesn't has any UI (user interface).

The service runs in the background indefinitely even if application is destroyed.

Moreover, service can be bounded by a component to perform interactivity and inter process communication (IPC).

The android.app.Service is subclass of ContextWrapper class.

What is the name of database used in android?

SQLite: An opensource and lightweight relational database for mobile devices.

What is AAPT?

AAPT is an acronym for android asset packaging tool. It handles the packaging process.

What is explicit intent in android?

Explicit intent is used to invoke the activity class.

How to call another activity in android?
  • Intent i = new Intent(getApplicationContext(), ActivityTwo.class);
  • startActivity(i);
What is fragment?

Fragment is a part of Activity. By the help of fragments, we can display multiple screens on one activity.

What is content provider?

Content providers are used to share information between android applications.

What is NDK?

NDK stands for Native Development Kit. By using NDK, you can develop a part of app using native language such as C/C++ to boost the performance.

What is ANR?

ANR stands for Application Not Responding. It is a dialog box that appears if the application is no longer responding.

Can an IntentService execute multiple tasks sequentially?

No. Intent Services are designed to perform one task at single point of time. However tasks can be queued

How can we make the AlarmService run forever even after device reboot

Once you start an AlarmService, it runs forever until your device restarts. Once your device restart, you have to start the service explicitly to run it forever again. You have to register BroadcastReceiver to handle boot event.

Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.