how can I receive ACTION_SCREEN_ON at my widget?


I know that there is way to receive broadcast intents ACTION_SCREEN_ON at activity or service. But my widget doesn't have any activity or service. Only widget. Is is possible to receive ACTION_SCREEN_ON at my widget? Then how?


This is not possible, sorry.

If you only want to update the app widget when the screen is on, use AlarmManager with an ELAPSED_REALTIME (not ELAPSED_REALTIME_WAKEUP) alarm.


  • Android Power Button Pressed
  • Raising a toast when Power Button is pressed twice
  • Android - Start Intent
  • How do I set the column width of some column width in datatables
  • AndroidViewModel and Unit Tests
  • How to solve error “Default Activity Not Found” occurred when starting my application from Service?
  • Is it possible to save the state of a button in one activity and then pass it on to a new activity?
  • Load dicom in another android application
  • New approach for adding a new Node to a Linked List
  • AndroidX : No instrumentation registered! Must run under a registering instrumentation
  • Microsoft SQL Server - restricting subqueries
  • How come forked processes do not affect each other when there is a global pointer?
  • How to execute some code when new email arrives in Android?
  • save the image to the gallery in android
  • disable downloading of image from a html page
  • When does iteration variable in for loop increment
  • socket.io with node.js not working as expected
  • PHPUnit picking up on syslog messages?
  • How to wait for a thread to finish execution in C#?
  • Button btn = new Button(this); what is the use of “this” in this context…?
  • Making mono cross platform support for Task/Intent
  • Does Microsoft chatbot(Node.js) support multiple language in the single LUIS.AI application?
  • Android - HorizontalScrollView will not scroll all the way
  • How to change placeholder text in an autocomplete activity of android google place?
  • EditText is covered by Keyboard
  • apply a javascript function to draggable copy
  • Two Tables Serving as one Model in Rails
  • Consuming a WCF service in a Java Client using wsHttpBinding
  • Exception gevent.hub.LoopExit: LoopExit('This operation would block forever',)
  • Salesforce Different WSDL files and when to use
  • URLConnection doesn't work since API 10 and higher?
  • JqueryMobile Popup menu is not working
  • Specifying Castle WCF Integration Facility Endpoint Behavior per Endpoint
  • Android - Material Design - NavigationView - How to put vertical scroll?
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • Is there a amazon webstore API for customers?
  • Circular dependency while pushing http interceptor
  • Cannot Parse HTML Data Using Android / JSOUP
  • Angular 2 constructor injection vs direct access
  • unknown Exception android