My_GPS_Location, Android The main class of Google Maps sample implementation location is LocationManager, there are two sources of location: GPS or network (3G or WIFI), you must open GPS or network before use, take my mobile phone as an example, set In "Settings > Positioning > Use GPS satellite positioning or wireless network WLAN to determine the location".