Hi, I add an idea. Is it possible to have to big elements sended to the WidgetManger ?
Le jeudi 17 mai 2012 06:24:42 UTC+2, Jose_GD a écrit : > > Hi Jorodan, > > Are you aware that broadcast receivers like appwidgets have a very short > lifecycle? > To make a robust updating scheme you must do the update from a service. > > HTH, > > José > > > El martes, 15 de mayo de 2012 06:28:29 UTC-3, Jorodan escribió: >> >> Hi Android developers, >> >> I have a big problem ! >> >> I have an alarm manager each minutes for updating the clock. >> When I received the Intent. >> For each instance of the widget, I calculate my RemoteView and send the >> RemoteView to the widget using : AppWidgetManager updateAppWidget(int >> appWidgetId, RemoteViews views). >> >> It is working well most part of the time. >> >> But, I don't know why, after an undetermined time, the function >> "updateAppWidget" doesn't refresh the widget. >> >> I force stop the Home (from system settings). When I do that, the Home >> will force close because of this error : "java.lang.RuntimeException: >> system server dead?" >> When my clock is "frozen", the system widget clock is frozen too. >> >> And for now, I found this bug only with the Galaxy Nexus and Galaxy S2. >> >> Any idea ? >> > Le jeudi 17 mai 2012 06:24:42 UTC+2, Jose_GD a écrit : > > Hi Jorodan, > > Are you aware that broadcast receivers like appwidgets have a very short > lifecycle? > To make a robust updating scheme you must do the update from a service. > > HTH, > > José > > > El martes, 15 de mayo de 2012 06:28:29 UTC-3, Jorodan escribió: >> >> Hi Android developers, >> >> I have a big problem ! >> >> I have an alarm manager each minutes for updating the clock. >> When I received the Intent. >> For each instance of the widget, I calculate my RemoteView and send the >> RemoteView to the widget using : AppWidgetManager updateAppWidget(int >> appWidgetId, RemoteViews views). >> >> It is working well most part of the time. >> >> But, I don't know why, after an undetermined time, the function >> "updateAppWidget" doesn't refresh the widget. >> >> I force stop the Home (from system settings). When I do that, the Home >> will force close because of this error : "java.lang.RuntimeException: >> system server dead?" >> When my clock is "frozen", the system widget clock is frozen too. >> >> And for now, I found this bug only with the Galaxy Nexus and Galaxy S2. >> >> Any idea ? >> > -- 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

