Widget not showing in widget list

前端 未结 2 1344
清歌不尽
清歌不尽 2021-01-23 00:12

I have an app and have decided to add a widget to it, I\'ve followed all the official documentation for it, but when I install the app on my Galaxy Nexus, the widget doesn\'t ap

相关标签:
2条回答
  • 2021-01-23 01:06

    The problem turned out to be a typo in the manifest.

    <action android:name="android.appwidget,action.APPWIDGET_UPDATE" />
    

    Should of been:

    <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    

    Notice the comma after android.appwidget.

    0 讨论(0)
  • 2021-01-23 01:06

    I have experienced the same problem a few times.

    The thing that helped me was rebooting my phone, after that the widget started appearing in the widget list. Why is this happening i dont know i have googled and found out that many have similar problems, that it even happens that users install the app from the Market and the widget doesnt appear in the list.

    Some solutions that were offered by others: re-installing the app(didn work for me), starting its main activity a few times(also nothing), rebooting phone(this one worked for me, since it even happened during development that the widget works fine for days and the suddenly it was missing in the list when re-installing from eclipse??? Rebooting the phone helped me.

    Hope it helps!

    0 讨论(0)
提交回复
热议问题