> Ok.. so i already have an receiver for the widget... and adding
> screen_on/screen_off should do it ?
> <!-- Broadcast Receiver that will process AppWidget updates -->
> <receiver android:name="com.package.NewsWidget"
> android:label="@string/app_name" >
> <intent-filter>
> <action
> android:name="android.intent.action.SCREEN_ON" />
> <action
> android:name="android.intent.action.SCREEN_OFF" />
> <action
> android:name="android.appwidget.action.APPWIDGET_UPDATE" />
> </intent-filter>
> <meta-data android:name="android.appwidget.provider"
> android:resource="@xml/widget_news" />
> </receiver>
> Strangely i don't receive SCREEN_OFF/SCREEN_ON in my
> @Override
> public void onReceive(Context context, Intent intent) {
> }
Nuts. Further research indicates that, at least as of last December, you
can only get SCREEN_OFF/SCREEN_ON from in-Java registered receivers:
http://groups.google.com/group/android-developers/browse_frm/thread/81d84efa68578924/e470ffd0dab85086?lnk=gst&q=screen_on#
--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---