Q1 2 Marks List and Discuss Android devices location sensors
Q1. (2 Marks) List and Discuss Android devices location sensors.
Q2. (3 Marks) What are Adapters in android, explain different adapter views?
Solution
Android sensors: Now a days every smart phone is hyaving sensors and there are many type of locations sensors and some of them are:
Barometer sensor: It is used to measure the atmospheric pressure which is used to measure the pressure in the atmosphere.
GPS: It is a type of sensor which shows exaclt where you are there in the form ofr maps or required places.
WiFi, cell id and Gps are mainly uses the this type of location sensors in android.
wifi sensors are used for the smartphones are use to the access for the internet and GPS sensors are helpful for finding the locations.
Adapters: Adapters are used in android which acts as the link between data and the adapter view which displays the data. some of the adapters which are used for the androids are given below
ArrayAdapter: It is used by the arraylist which stores the objects and this will used to link between the array and adapterview.
simplecursoradapter is also one of the type of the adapter which is used to link between the cursor and the adapterview.
Listadapter is an example of the adapter in the adapterview which links between the listadapter and adapterview.
