Hello, I am trying to create a widget which updates at a user defined period, following this tutorial: http://www.developer.com/ws/article.php/10927_3833306_2/Creating-a-Home-Screen-App-Widget-on-Android.htm
All has been going well but I cannot get the onReceive and onUpdate events to fire on the Provider. This is the code to set up my AlarmManager Intent widgetUpdate = new Intent(); widgetUpdate.setAction (AppWidgetManager.ACTION_APPWIDGET_UPDATE); widgetUpdate.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId ); widgetUpdate.setData(Uri.withAppendedPath(Uri.parse (ProfileDisplayWidgetProvider.URI_SCHEME + "://widget/id/"), String.valueOf(appWidgetId))); PendingIntent newPending = PendingIntent.getBroadcast (getApplicationContext(), 0, widgetUpdate, PendingIntent.FLAG_UPDATE_CURRENT); AlarmManager alarms = (AlarmManager) getApplicationContext ().getSystemService(Context.ALARM_SERVICE); alarms.setRepeating(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime(), 15 * 1000, newPending); If I remove the widgetUpdate.setData() line, then the onReceive event fires, but not the onUpdate. With that line in, nothing fires. Could anyone give me any pointers on possible ways to fix this. Thanks David -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en