i have strange problem widget developed. widget works on home screen, updating should. have made changes code, adding more intents widget receiver.
the original intent filter widget following:
<intent-filter> <action android:name="android.appwidget.action.appwidget_update" /> </intent-filter>
after changes, added following intents:
<intent-filter> <action android:name="com.basi.widget.my_update_widget" /> <action android:name="android.intent.action.time_changed" /> <action android:name="android.intent.action.timezone_changed" /> <action android:name="android.intent.action.locale_changed" /> </intent-filter>
and changed widget being updated service being updated recurring alarm sends my_update_widget intent. problem when update application, widget stops updating , 'problem loading widget' appears. when remove widget home screen , add back, works should, if install further updates. looks goes wrong particular update, i.e., changing of intents. have checked logcat , there no errors have noticed onreceive intent not firing after initial update problem.
what suspect widget on home screen knows intents receive - if not re-initialized (by removing , adding back), not listen new intents why problem happens. there way tell widget start receiving new intents? different problem?
after many hours of trial , error found out problem. 1 of changes made in update move widget class different package in updated version. seems 'break' functionality of existing widgets after package replaced new version. moving widget class file original package fixed problem. there nothing wrong additional intents.
hope someone.
Comments
Post a Comment