Android updateAppWidget doesn't update -
i got serious issue on android application:
calling
appwidgetmanager appwidgetmanager = appwidgetmanager.getinstance(context); appwidgetmanager.updateappwidget(appwidgetid, getwidgetview(context, appwidgetid)); in public void onreceive(context context, intent intent) method has no result @ all. remoteviews produced looks valid (programatically speaking) widget not updated (it keeps old values).
i've found similar questions, nobody has answer it:
the solution posted @manitoba not working, here working code put inside onupdate :
remoteviews views = new remoteviews(context.getpackagename(), r.layout.widget); // stuff appwidgetmanager.updateappwidget(new componentname(context, customwidgetprovider.class), views); hope :)
Comments
Post a Comment