Want to Access Power Button events in android [duplicate]

You should add the following permission to your manifest file:

<uses-permission android:name="android.permission.PREVENT_POWER_KEY" />

Leave a Comment