如何在 android 中以编程方式打开移动设备?

How to switch on the mobile devices programatically in android?

我正在制作闹钟,我想检查闹钟在设定时间响起时phone是打开还是关闭。

如果 phone 已关闭,则将其打开并响起警报。

试试这个可能对你有帮助

http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN `

<receiver android:name=".ShutdownReceiver">
    <intent-filter>
        <action android:name="android.intent.action.ACTION_SHUTDOWN" />
        <action android:name="android.intent.action.QUICKBOOT_POWEROFF" />
    </intent-filter>
</receiver>`