Overriding the power button in Android - Stack Overflow

Overriding the power button in Android - Stack Overflow

瀏覽:757
日期:2025-04-25
I don't know what you intend to do, but you could use a BroadcastReceiver and listen for the android.intent.action.SCREEN_OFF or Intent.ACTION_SCREEN_OFF which is sent when power button is pressed (and screen is on). Unfortunately this intent will be sent...看更多