Hi friends,
today we will see one of the most exciting features of Android operating system
known as context aware services. This feature makes Android device a much smarter
as it knows where exactly it is by using GPS receiver which is in built in Android
device.
Today we will see how when
a button is pressed on screen it gives us co-ordinates (latitude and longitude)
of our current place. First of all we will create default application and then
will make changes in it.
Files in which we will make
changes and new files which we will add are as follows
1) MainActivity.java
2) GPSTrack.java
3) Layout/activity_main.xml
4) Values/strings.xml
5) AndroidManifest.java
*MainActivity.java
No comments:
Post a Comment