如何以编程方式关闭android手机的屏幕?

时间:2014-03-31 06:29:37

标签: android-screen-support android-screen

如何以编程方式关闭Android手机的屏幕?我尝试使用以下代码,没有运气

PowerManager mPowerManager = (PowerManager) getSystemService(POWER_SERVICE);
mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MYTAG");

mWakeLock.acquire();

0 个答案:

没有答案