Mad ct2
Mad ct2
<intent-filter>
</intent-filter>
</activity>
DatePicker is a widget used to select a date. It allows to select date by day, month and year in your
custom UI
If we need to show this view as a dialog then we have to use a DatePickerDialog class
getDayOfMonth():-This method is used to get the selected day of the month from a date
picker. This method returns an integer value.
getMonth():-This method is used to get the selected month from a date picker. This
method returns an integer value.
getYear():-This method is used to get the selected year from a date picker. This
method returns an integer value.
getFirstDayOfWeek():-This method is used to get the first day of the week. This method
returns an integer value.
Text View, Edit Text, Button, Image Button, RadioButton, RadioGroup, CheckBox, ProgressBar,
A ToggleButton is a user interface element in Android that represents a two-state button, typically
used for enabling or disabling a feature or setting. It displays checked and unchecked states, and
users can toggle between these states by tapping the button.
In Android Studio, integrating Google Maps into your application can provide powerful features for
location-based services and enhance the user experience. Google Maps allows you to display maps,
add markers, draw routes, and perform various other operations related to maps and locations.
A user navigates through the app, Activity instances in your app transition through different stages in
their life-cycle.
The Activity class provides a number of callbacks that allow the activity to know that a state has
changed: that the system is creating, stopping, or resuming an activity, or destroying the process
in which the activity resides.
Environmental sensors:
These sensors measure various environmental parameters, such as ambient air temperature and
pressure,illumination, and humidity. This category includes barometers, photometers, and
thermometers.
Camera is mainly used to capture picture and video. We can control the camera by using methods of
camera API.
By Camera Intent
By Camera API
1. Intent
-By the help of 2 constants of MediaStore class, we can capture picture and video without
using the instance of Camera class.
ACTION_IMAGE_CAPTURE
ACTION_VIDEO_CAPTURE
2. Camera
- It is main class of camera API, that can be used to take picture and video.
3. SurfaceView
- It represents a surface view or preview of live camera.
4. MediaRecorder
- It is used to record video using camera. It can also be used to record audio files
Most of the android devices have built-in sensors that measure motion, orientation, and various
environmental condition.
Motion sensors: These sensors measure acceleration forces and rotational forces along three axes.
This category includes accelerometers, gravity sensors, gyroscopes, and rotational vector sensors.
Environmental sensors: These sensors measure various environmental parameters, such as ambient
air temperature and pressure, illumination, and humidity. This category includes barometers,
photometers, and thermometers.
Position sensors: These sensors measure the physical position of a device. This category includes
orientation sensors and magnetometers.
Develop an application to send and receive SMS (Write only Java and permission tag in manifest file).