Karteikarten
Android Questions refined
Karten in diesem Stapel (14)
- 1What is Sensor?Provides the methods for determining the capabilities of a specific sensor.
- 2What is SensorManager?Provides the methods used for registering sensor event listeners and calibrating the sensors.
- 3What is SensorEvent?Provides the raw sensor data, including accuracy data.
- 4What is SensorEventListener.Interface that defines callback methods for receiving sensor event notifications
- 5What is ContentProvider and what is it used for?ContentProvider is a interface that connects data in one process and runs code in another process.
We use it for managing access to a strutted set of data. It encapsulates the data and provides mechanisms for defining data security - 6Describe a scenario where onPause() and onStop() would not be called?If finish() is called within onCreate(), if we detect an error in onCreate() and call finish()
- 7What is the relation between Async and Activity lifecycle?Async task is not tied to the lifecycle of the activity that contains it. The task will finish if the activity is changed
- 8What problems can result in the previous question?Throws exceptions because one activities asyncTask will not update another activities view.. in the case of a UI
- 9How could this problem be solved from the previous question?Not using asyncTasks for long operations but rather using a service
- 10Difference between fragment and a Activity?Activity is a single, focused operation a user can perform.
Fragment is a modular section within an Activity that has its own lifecycle and input events - 11What are Launch Modes?A way to associate a instance of a new activity with the current task.
Manifest and IntentFlags - 12What type of launch modes are supported in Manifest?standard
singleTop
singleTask
singleInstance - 13What type of launch modes are supported In IntentFlags?FLAG_ACTIVITY_NEW_TASK
FLAG_ACTIVITY_SINGLE_TOP
FLAG_ACTIVITY_CLEAR_TOP - 14Describe the ContentProvider process?To access the data through a contentProvider, we must first use the contentResolver object in the applications Context to communicate with the provider as a client. The ContentResolver object communicates with the provider object, an instance of a class that implements ContentProvider.
Informationen
- Beschreibung
- redefined list of android interview questions
- Erstellt von
- andrew tittle
- Aufrufe
- 1
- Bewertung