Android widget avoid updating -


i building static android widget, means widget doesn't need updated @ all. thing widget need handle open link browser when triggered.

in appwidgetproviderinfo metadata xml file, there 1 attribute called "updateperiodmillis", , should set value there? or don't add attribute?

thanks

why not override onupdate() in appwidgetprovider class , have nothing.

public class mywidget extends appwidgetprovider {      @override     public void onupdate(context context, appwidgetmanager appwidgetmanager, int[] appwidgetids) {     //do nothing     } } 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -