tags:

views:

93

answers:

2

I want to check if GPS is enabled, but I dont know how to do it.

i mean with a function, in android

EDIT: sorry i forgot to tell you that i am programming with android

A: 

System --> Settings --> Locations --> Enable GPS? --> Yes.

Moses
+2  A: 
if(gps==true){
   //Do Stuff With GPS
} else {
  //Can't do things With GPS  
} 
Dean