I have discovered a bug in ExampleAppWidgetProvider.onEnabled() and in
the configuration of the ExampleBroadcastReceiver.

The correct configuration of the BroadcastReceiver (BR) which leads to
the Callback as desired:

<receiver android:name=".appwidget.ExampleBroadcastReceiver"
android:enabled="true">
            <intent-filter>
                <action
android:name="android.intent.action.TIMEZONE_CHANGED" />
                <action android:name="android.intent.action.TIME" />
            </intent-filter>
</receiver>

Logcat output:

I/ActivityManager(  575): Displayed activity
com.android.settings/.ZoneList: 405 ms
D/AlarmManagerService(  575): Kernel timezone updated to 480 minutes
west of GMT
D/ExmampleBroadcastReceiver(  757): intent=Intent
{ action=android.intent.action.TIMEZONE_CHANGED comp=
{com.example.android.apis/
com.example.android.apis.appwidget.ExampleBroadcastReceiver}

The way in which the BR is enabled in
ExampleAppWidgetProvider.onEnabled() via the PackageManager doesn't
seem to work I suspect.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to