Intent.ActionScreenOn Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Broadcast Action: Sent when the device wakes up and becomes interactive.
[Android.Runtime.Register("ACTION_SCREEN_ON")]
public const string ActionScreenOn;
[<Android.Runtime.Register("ACTION_SCREEN_ON")>]
val mutable ActionScreenOn : string
Field Value
Implements
- Attributes
Remarks
Broadcast Action: Sent when the device wakes up and becomes interactive.
For historical reasons, the name of this broadcast action refers to the power state of the screen but it is actually sent in response to changes in the overall interactive state of the device.
This broadcast is sent when the device becomes interactive which may have nothing to do with the screen turning on. To determine the actual state of the screen, use android.view.Display#getState
.
See android.os.PowerManager#isInteractive
for details.
You <em>cannot</em> receive this through components declared in manifests, only by explicitly registering for it with Context#registerReceiver(BroadcastReceiver, IntentFilter) Context.registerReceiver()
.
<p class="note">This is a protected intent that can only be sent by the system.
Java documentation for android.content.Intent.ACTION_SCREEN_ON
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.