Ok time will tell, but at first sight it seems to work :) But what I was wondering: Your explanation makes total sense to me but however how can this cause the applet to work fine (with only one existing instance) for hours and hours (almost 24hours at once) and then suddenly the buttons do not work anymore. How is tat possible? Can it have something to do with the updateInterval set?
Kind regards, Dirk On 27 mei, 20:44, Kostya Vasilyev <[email protected]> wrote: > Hi, > > Looks like your code updates the widget using two steps: pending intents and > then the current data state. > > You need to make sure that each RemoteViews update specifies complete state, > including all pending intents. > > So in this case, just create only one remote views object per update, and > use it to push both pending intents and current data. > > 27.05.2010 22:02 пользователь "Dirk Vranckaert" <[email protected]> > написал: > > Hey all, > > I'm currently developing an Android widget but I am experiencing some > issues. > So when I added the widget to my desktop (both on emulator and real > devices) the first time it always works. However sometimes it stops > working, sometimes when you remove it and add it again it doesn't work > anymore. > > A little more into detail. > My widget has 2 buttons. Upon clicking those buttons an activity gets > launched. The code that configures this is available over > here:http://pastebin.com/TWp4mLDH > However when I say the widget does not work anymore, what I mean is > that clicking one of the buttons does not result in an activity > getting started. The widget-buttons light up orange as should be but > no activity gets started. > > Here you can see the logs when I add the widget to the phone, in the > first part of the log it does work, in the second part it doesn't. > Altough I cannot see any difference in the logging ==> > LOGS:http://pastebin.com/z2yxzjsi > > All the project's code is available over > here:http://code.google.com/p/workregistrationwidget-android/ > > I really can't think of anything I would be doing wrong! > > Kind regards, > > Dirk > > -- > 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]<android-developers%2Bunsubs > [email protected]> > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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

