请自行导包:
/**
* @return true: shutdown success; false: shutdown failed.
*/
public boolean shutdown(){
Log.d(TAG, "shutdownAt immediately! ");
Intent intent = new Intent(ACTION_REQUEST_SHUTDOWN);
intent.putExtra(EXTRA_KEY_CONFIRM, false);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
return true;
}