GPS - Device Support It?

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

GPS - Device Support It?

Postby Menor » Fri May 13, 2011 2:44 pm

Hello, i'm developing an application that uses GPS.

How can i know if the current device supports gps? What test should i do before use it?

Code: Select all
myLocation = new GPSLocation();
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, myLocation);
Experienced Developer
Experienced Developer
Posts: 83
Joined: Mon Apr 11, 2011 3:45 pm


Re: GPS - Device Support It?

Postby abhijitphatak28 » Wed May 18, 2011 8:26 am

You can check for

LocationManager _locmanager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); if(!_locmanager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {


User avatar
Senior Developer
Senior Developer
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests