关机API

Chinese, Simplified


请参考下面代码发广播即可:


private void _powOffSystem_(){
    Log.v(TAG, "send broadcast to powOffSystem");
    Intent intent = new Intent("com.temolin.hardware.shutdown");
    sendBroadcast(intent);
}


文档中心

以上内容是否对您有帮助?