Okay i have that now and i still get the nullpointerexception on an Nexus One.
I still use a separate thread because the client libray i use does a asyncrhonous api call. But i syncrhonize it by an object lock. So it should work fine.. but it doesnt. On Jul 14, 2:50 pm, Mark Murphy <[email protected]> wrote: > On Wed, Jul 14, 2010 at 8:35 AM, TjerkW <[email protected]> wrote: > > Works on the emulator.. but on my nexus one i still get the nasty > > nullpointerexception deep inside the Android apis > > At this point, I am fairly lost with your code. I don't know why you > need onUpdate() to fork a thread. Make sure that you keep your code > that gets the AppWidgetManager, creates/populates the RemoteViews, and > calls updateAppWidget() all in a contiguous block of code, called on > one thread, and it should work fine (barring supplying null values to > methods on RemoteViews or something). > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > Available! -- 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

