Last active
August 29, 2015 14:13
-
-
Save GSala/118cb6169fc24f5916c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onStop() { | |
/*// Stop bluetooth service | |
Intent intent = new Intent(this, BluetoothService.class); | |
stopService(intent);*/ | |
if(!isChangingConfigurations()){ | |
new Handler().postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
Intent intent = new Intent(getApplicationContext(), BluetoothService.class); | |
stopService(intent); | |
} | |
}, 5000); | |
} | |
super.onStop(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment