• +91 9723535972
  • info@interviewmaterial.com

Android Interview Questions and Answers

Android Interview Questions and Answers

Question - 71 : - How do you disable onBackPressed()?

Answer - 71 : -

You can disable onBackPressed() by overriding it.

Question - 72 : - List some layouts available in android?

Answer - 72 : -

Some layouts available in Android are as follows:

  • Linear Layout
  • Relative Layout
  • Constraint Layout
  • Table Layout
  • Frame Layout
  • List View
  • Grid View
  • Absolute Layout
  • WebView
  • ScrollView

Question - 73 : - What are some measures you can take to avoid ANR?

Answer - 73 : -

You can avoid ANR to perform long-running operations on the worker thread, not on the main thread. To create a worker thread, we can use AsyncTask class for long-running operations like File uploading, File downloading, etc

Question - 74 : - What is a PendingIntent?

Answer - 74 : -

A Pending Intent is an action to require in the future. It allows you to pass a future Intent to a different application and permit that application to execute the Intent.

Question - 75 : - What is use of AndroidManifest.xml file?

Answer - 75 : -

AndroidManifest.xml file is responsible to protect the application from accessing any protected parts by providing the permissions. Every app project has an AndroidManifest.xml file which is also the root of the project source set. This file contains information about your package, Android operating system, the Android build tools, Google Play, and other including components of the application such as activities, content providers, services, broadcast receivers, etc.

Question - 76 : - What are retained fragments?

Answer - 76 : -

A Fragment represents a reusable portion of your app's User Interface. Retained Fragment consists of the configuration change that causes the underlying Activity to be destroyed. The term "retained" refers to the fragment that will not be destroyed on configuration changes.

Question - 77 : - What are Sensors in Android?

Answer - 77 : -

The Android platform provides several sensors that are used to monitor the motion of a device. The sensors' possible architectures vary with sensor types such as the gravity, linear acceleration, rotation vector, significant motion, step counter, and step detector sensors that are either hardware-based or software-based.

Question - 78 : - Explain different launch modes in Android?

Answer - 78 : -

Different launch modes are explained below:

  • Android Launch mode 'Standard' — Multiple instances every time, A very default launch mode!
  • Launch mode 'SingleTop' — Multiple instances Conditionally
  • Specialized Launch mode 'SingleTask' — Single instance throughout System.
  • Specialized Launch mode 'SingleInstance' — Single instance throughout System.

Question - 79 : - What are the intent filters?

Answer - 79 : -

In an application, An Intent is a messaging object that can be used to request an action from another app component. It specifies the type of intents that the component would like to receive. For instance, you make it possible for other apps to directly start your activity with a certain kind of intent by declaring an intent filter for an activity.

Question - 80 : - What is SQLite?

Answer - 80 : -

SQLite is an embedded SQL database engine with multiple tables, indices, triggers, and views, contained in a single disk file. SQLite modifies data directly to ordinary disk files.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners