android - how to partially Update AppWidget -


i writing appwidget has view(textview example) displaying information user chooses , want ui-event handler update textview each time ui-event triggered , question how update textview via remoteviews , appwidgetmanager's partiallyupdateappwidget method solution, if true , please show me usage , in advance

if write api 11 , above use:

 // layout app widget   remoteviews views = new remoteviews(context.getpackagename(), r.layout.widget); views.settextviewtext(id,text); appwidgetmanager.updateappwidget(appwidgetid, views); 

as shown in question how partially update views in app widget without rebuilding remoteviews

otherwise rebuild entire removeviews (basiclly call remoteviews again)


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -