@Override public void onDestroy() { if (geo != null) geo = app.removeGeo(); if (tracker != null) tracker.stop(); super.onDestroy(); }
@Override protected void onDestroy() { String release = Build.VERSION.RELEASE; tracker.stop(); super.onDestroy(); /* if(release.equals("2.2")){ //this does not show a force close, but does sucessfully allow the user to disconnect the bluetooth after they close aublog. //if they have android 2.2 and they disconnect the bluetooth without quitting aublog then the device will reboot. android.os.Process.killProcess(android.os.Process.myPid()); }else{ //do nothing, bluetooth issue is fixed in 2.2.1 and above }*/ }
@Override protected void onDestroy() { super.onDestroy(); // これ以上必要のない追跡を停止する tracker.stop(); }