android - Why is my widget updating on a virtual device but not on a real device to? -
i have created widget works ok on virtual device not on real device to.
after rebooting the real device (samsung galaxy note3) widget not working anymore (not responding comands).
although working right way on virtual device after rebooting.
i suspect onupdate() method appwidgetprovider not called on real device after reboot. not see call onupdate() in logcat. there no line related widget in logcat of real device after reboot.
on other hand call onupdate() method shows in logcat when using virtual device testing.
do have idea why happening?
this manifest:
<?xml version="1.0" encoding="utf-8"?> <uses-sdk android:minsdkversion="21" android:targetsdkversion="21" /> <uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.read_phone_state" /> <application android:allowclearuserdata="true" android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme"> android:debuggable="true" <receiver android:name=".mywidget"> <intent-filter> <action android:name="android.appwidget.action.appwidget_update" /> </intent-filter> <meta-data android:name="android.appwidget.provider" android:resource="@xml/my_widget_info" /> </receiver> <service android:name=".updatewidgetservice" /> <activity android:name=".configure"> <intent-filter> <action android:name="android.appwidget.action.appwidget_configure" /> </intent-filter> </activity> <service android:name=".navigatepagesintent" android:exported="false" /> </application> and metadata:
<?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:initiallayout="@layout/my_widget" android:minheight="200dp" android:minwidth="200dp" android:updateperiodmillis="1860000" android:configure="ro.aplication.liviu_sebastian.instadocwidget.configure" android:resizemode="horizontal|vertical"> </appwidget-provider>
Comments
Post a Comment