Android UT2 QA Part1
Android UT2 QA Part1
startActivity(intent);
Intent: An intent is a messaging object used to request an action from another app component.
Types:
- Explicit Intent
- Implicit Intent
- Start activities
- Start services
- Deliver broadcasts
A Content Provider manages access to a structured set of data. It enables data sharing between
- Accelerometer
- Gyroscope
- Proximity sensor
- Light sensor
- Magnetometer
- Temperature sensor
ii) Broadcast Receiver: A component that responds to broadcast messages from other apps or the
system.
7. Name two classes used to play audio and video in Android.
- MediaPlayer
- VideoView
Fragments allow for modular UI design and can be reused in multiple activities, enabling flexible UI
- onCreate()
- onStart()
- onResume()
- onPause()
- onStop()
- onDestroy()