public void onActionClicked(Action action) { switch (action.getId()) { case ACTION_RESET_DEVICE: if (!ActivityManager.isUserAMonkey()) { Intent resetIntent = new Intent("android.intent.action.MASTER_CLEAR"); if (getIntent().getBooleanExtra(SHUTDOWN_INTENT_EXTRA, false)) { resetIntent.putExtra(SHUTDOWN_INTENT_EXTRA, true); } sendBroadcast(resetIntent); } break;
沒有留言:
張貼留言