Ans: There are four Java classes that are related to the use of sensors on the Android platform are as follows:
Ans: An intent is a messaging object which you can use to request an action from another app component. It is used for starting an activity, Services, or delivering a broadcast. There are two types of intents in android.
They are:
Ans: A ContentProvider manages access to a structured set of data. A provider is a part of an Android application, which often provides its own UI for working with the data. Content providers are primarily intended to be used by other applications that can access the provider by using a provider client object.
Ans: DDMS is the Dalvik Debug Monitor Server. It is the bug monitoring server that comes along with android. It provides a wide range of debugging features such as
Want to acquire industry skills and gain complete knowledge of Android? Enroll in Instructor-Led live Android Development Training to get Job Ready! |
Ans: onAttached() is the method that can call only once in a fragment lifecycle.
Ans: The broadcast receiver is a dormant component of the Android system. It is responsible to send a notification to the user whenever a specific event occurs like “Check your internet connection”, “Your battery is low”, etc.
Ans: The following are the components of Android application architecture:
Ans: The various storages that are provided by Android are as follows:
Ans: Android Packaging key (APK). It is a compressed key with classes, supportive assets, UI’s, and manifest. All the files can be compressed into a single file called the APK.
Ans: There are two types of flags that are used to run the application. They are as follows:
FLAG_ACTIVITY_NEW_TASK
FLAG_ACTIVITY_CLEAR_TOP
Ans: The following are the dialog box that is supported by the Android:
Ans: The basic tools that are used to develop an Android application are as follows:
Ans: Some exceptions in Android are as follows:
Ans: The list of impotent folders are as follows:
Ans: The core building blocks of an android are as follows:
Ans: The main advantages of android are as follows:
Ans: Because android uses DVM (Dalvik Virtual Machine) rather than JVM (Java Virtual Machine).
Ans: onCreate() method is called when the application starts, once during the Activity lifecycle, or when the Activity has been destroyed and recreated, for example during the configuration change.
onStart() method is called whenever the Activity becomes visible to the user, typically after onCreate() or onRestart() method.
Ans: A service is an application component that can run in the background, even when the user is not interacting with the application. There are three different types of services. They are as follows:
Ans: Service is an application component that can run in the background, even when the user is not interacting with the application. A service can handle the network transactions, or can interact with a content provider, all from the background.
Intent service is a subclass of service that handles asynchronous requests on demand. Clients send the requests through intent calls. The service is started as needed, handles each intent inturn using a worker thread and stops by itself when it runs out of work.
Ans: Threads is used to separate long running operations from main thread so that to improve the performance. But it can’t be cancelled and it can’t handle configuration changes of an android.
Async Tasks are used to handle work items shorter than 5mins duration and you can update UI unlike Java. but many long running tasks will drown the performance.
Ans: Activity is basically a container or Windows to the User interface, whereas Service is a component that is used to perform operations on the background.
Ans: Serializable is a process of converting an object into streams of bytes in order to store the object in memory, so that it can be recreated but still keeps the object’s original state and data. It is a Standard Java interface.
Parcelable is an android specific interface where you can implement a serialization interface by yourself. This mechanism tends to form a lot of temporary objects and can result in garbage folders.
Ans: The fragment is a UI entity connected to FragmentActivity. Yourself can connect the various fragments in a single action to create a multi-pane UI and can reuse the fragment in various activities.
Ans: An activity is an application component that provides a screen with which the user can interact in order to do something, whereas fragment represents the portion of UI in an activity with its own lifecycle and the input events.
Ans: An ANR dialog box occurs when the UI is not responding for more than 5seconds, it usually occurs when you have blocked the main thread.
To avoid occurring the ANR errors, you should move work off the main thread as much as possible.
Ans:
Ans: The Loader API allows you to load the data from the Content provider or other data source for display in an FragmentActivity or Fragment.
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.