Enabling GPS location for Android

You can collect GPS location for Android apps using setLocation.

Use the following code to enable GPS location collection.
public static void setLocation(Location location)