My GPS reminder keeps asking me for enable GPS

view story

http://stackoverflow.com – I have provide a GPS reminder in my app, but when i enable my gps and return to my mainactivty, my gps reminder ask me again, again and a agin when i press the googlemaps button. It only works when I close the program and restart the app This is my MainActivityClass. GPSTracker gps; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); gps = new GPSTracker(MainActivity.this); } My button to googlemaps. public void googlemaps(View view) { if (gps.canGetLocation()) { Intent intent = (HowTos)