For screen on-off state, you can try with ACTION_SCREEN_ON
and ACTION_SCREEN_OFF
Intent
s, as shown in this blog post: http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/
More Related Contents:
- How to save the button that has been added dynamically in Android?
- Android apps on ios
- “Conversion to Dalvik format failed with error 1” on external JAR
- How to implement endless list with RecyclerView?
- How can you make a custom keyboard in Android? [closed]
- Android Left to Right slide animation
- Share SQLite database between 2 android apps?
- startForeground fail after upgrade to Android 8.1
- Disable scrolling in webview?
- Android: customize application’s menu (e.g background color)
- How to retrieve the android sdk version? [duplicate]
- Unicode characters not displayed in TextView.setText
- Gson NoClassDefFoundError after ADT and SDK Tools update to v17
- Passing string array between android activities
- How do I create a circular (endless) RecyclerView?
- how to detect orientation of android device?
- Volley JsonObjectRequest Post parameters no longer work
- How to securely store access token and secret in Android?
- Finish parent and current activity in Android
- Passing JSONObject into another activity
- MPAndroid Chart not displaying any labels for xAxis , what is missing?
- Using FFmpeg with Android-NDK
- How to change letter spacing in a Textview?
- Text with gradient in Android
- ActionBarSherlock stacked action bar styling issue
- Lint error “Do not treat position as fixed; only use immediately…”
- How to get data from DialogFragment to a Fragment?
- Android Studio Emulator: VK_VERSION_1_1 check failed
- android unlock screen intent?
- Android Gyroscope examples?