How to send GPS Latitude and Longitude of Phone to Arduino

I am doing a project where I want a robot to follow after my phone. But I need to know how to send GPS Latitude and Longitude of my (Android) Phone to Arduino. Is there any software I can use? I also have a Bluetooth HC-06 module which I can use to connect my (Android) Phone to Arduino if that is needed. Does anybody know how to?

(deleted)

You need an app on the Android that will transmit the GPS co-ordinates of the Androids GPS, bluetooth is one way.

For example With MIT App Inventor GPS API and then sending that out through your BT

Try SensoDuino app.

Developer page: TechBitar - Home

If google play say, your phone is not compatible, search google sensoduino.apk and download. :wink:

You may need to use this code for Android JAVA IDE

public class GPSTracker extends Service implements LocationListener {

private final Context mContext;

// flag for GPS status
boolean isGPSEnabled = false;

// flag for network status
boolean isNetworkEnabled = false;

boolean canGetLocation = false;

Location location; // location
double latitude; // latitude
double longitude; // longitude

// The minimum distance to change Updates in meters
private static final long MIN_DISTANCE_CHANGE_FOR_UPDATES = 10; // 10 meters

// The minimum time between updates in milliseconds
private static final long MIN_TIME_BW_UPDATES = 1000 * 60 * 1; // 1 minute

// Declaring a Location Manager
protected LocationManager locationManager;

public GPSTracker(Context context) {
this.mContext = context;
getLocation();
}