Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get GPS Coordinates : Android

Tags:

java

android

gps

I'm new to Android development. As a class assignment another student and myself are making an android app that will utilize GPS coordinates.

Is there anywhere that would be a good place for me to start with GPS feature on Android, or that has a good example of how to use GPS? I don't want anything deep, literally just how to retrieve and use current GPS coordinates. I'd like to start simple and build up from there.

like image 932
Chris V. Avatar asked Nov 16 '11 21:11

Chris V.


People also ask

Can Google Maps get GPS Coordinates?

You can find coordinates on Google Maps to give you the exact positioning (the latitude and longitude) of any location. It's easy to find coordinates on Google Maps on your phone or computer, and you can copy and paste your coordinates to share a precise location with others.

How do I find latitude and longitude on my phone?

Android: Open Google Maps; it will zoom to your approximate location. Press and hold on the screen to drop a pin marker. Click on the dropped pin; latitude and longitude will be displayed below the map.

How do I get GPS Coordinates from an app?

Google Maps For Android users, Google Maps is the simplest way to either enter latitude and longitude coordinates or to find out your current coordinates. If you want to find your current coordinates, zoom into your location and hold down on the touchpad screen in the map.


2 Answers

As mentioned in one of the other answers, Vogella's article here is very good for learning the basics of using GPS on Android.

The Android Dev guides are also particularly good for this area - obviously there are issues with battery drain associated with using location listeners. More in-depth information on what you can do to combat those issues are here, as when you get to grips with how to use GPS, you'll want to use it efficiently!

HTH

like image 93
clamped Avatar answered Oct 13 '22 03:10

clamped


Well mostly GPS coordinates are used along with Google Maps. So, as a starter what you can do is just get your own coordinates and put a marker on your location on the map.
This article and this one describes everything about using google maps with android.

Hope this helps.

like image 22
Urban Avatar answered Oct 13 '22 02:10

Urban