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
Post a Comment