// Called when plugin is turned off @Override public void onDestroy() { super.onDestroy(); Aware.stopPlugin(this, pkg_google_fused); Aware.stopPlugin(this, pkg_google_activity_recog); Aware.setSetting( this, "status_plugin_google_activity_recognition", false, pkg_google_activity_recog); Aware.setSetting(this, "status_google_fused_location", false, pkg_google_fused); Aware.setSetting(this, Aware_Preferences.STATUS_INSTALLATIONS, false); // Aware.setSetting(this, Aware_Preferences.STATUS_ACCELEROMETER, false); if (activityObs != null) { getContentResolver().unregisterContentObserver(activityObs); } sendBroadcast(new Intent(Aware.ACTION_AWARE_REFRESH)); }