Android
Pages
Codes and Examples
How To Install Android
Android Interview Questions
Windows Shortcuts
Word shorcuts
Emulator Shortcuts
Wednesday, January 16, 2013
check if gps is on or off:
public static boolean hasGPSCapability(Context context) {
final LocationManager mgr = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
boolean status = mgr.isProviderEnabled(LocationManager.GPS_PROVIDER);
return status;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment