, ,

Android Get Current Location from GPS or Internet/Data

August 9, 2014

Android has a feature of getting your current location by running the device’s Global Positioning System (GPS) or connecting to your wifi or network provider’s data.   1. We need to use the getSystemService method from Activity object to get the Location Service and cast it as Location Manager. public class MyActivity extends Activity{ protected[...]