Android onEnabled/onDisabled never called -


i'm having problem triggering of onenabled , ondisabled methods of appwidgetreciever. have actions specified, log every action in onrecieve method, 2 actions "appwidget_update" , "appwidget_deleted". have googled solution, unfortunately found none. here code:

manifest part:

<receiver android:name=".schedulewidgetprovider" >             <intent-filter>                 <action android:name="android.appwidget.action.appwidget_enabled" />                 <action android:name="android.appwidget.action.appwidget_disabled" />                 <action android:name="android.appwidget.action.appwidget_update" />                 <action android:name="android.appwidget.action.appwidget_deleted" />              </intent-filter>             <meta-data android:name="android.appwidget.provider"                 android:resource="@xml/provider_xml" />         </receiver> 

provider_xml:

<?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"     android:minwidth="180dp"     android:minheight="40dp"     android:updateperiodmillis="60000"     android:initiallayout="@layout/widget_layout"     android:configure="org.zivkovic.schedule.configurationactivity"     > </appwidget-provider> 

schedulewidgetprovider:

public class schedulewidgetprovider extends appwidgetprovider {     {         log.w("schedule", "schedulewidgetproviderrequested");     }      @override     public void onreceive(context context, intent intent) {         log.w("schedule", "on recieve " + intent.getaction());         super.onreceive(context, intent);     }      @override     public void onenabled(context context) {         log.w("schedule", "onenabled called");         ...         super.onenabled(context);     }      @override     public void ondisabled(context context) {         log.w("schedule", "ondisabled called");          ...          super.ondisabled(context);     }      @override     public void onupdate(context context, appwidgetmanager appwidgetmanager, int[] appwidgetids) {         (int = 0; < appwidgetids.length; i++) {             ....         }         super.onupdate(context, appwidgetmanager, appwidgetids);     }  } 

any appreciated. thanks!

okay, removing app phone did trick. can't understand why uninstall fixed it. having same problem, uninstall , reinstall app.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -