# \[SOLVED\] Openhab App Widget: Loading items failed

**URL:** <https://community.openhab.org/t/solved-openhab-app-widget-loading-items-failed/86136>\
**Category:** Android App\
**Created:** [November 24, 2019, 9:36am UTC](https://community.openhab.org/t/solved-openhab-app-widget-loading-items-failed/86136 "2019-11-24T09:36:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huaba](https://community.openhab.org/user_avatar/community.openhab.org/huaba/32/72245_2.png) [@Huaba](https://community.openhab.org/u/Huaba)\
**Post date:** [November 24, 2019, 9:36am UTC](https://community.openhab.org/t/solved-openhab-app-widget-loading-items-failed/86136/1 "2019-11-24T09:36:01Z")

</div>

Hi,

i’ll use the 1x1 item controll widget on my mobile to quick access often used items. But mostly the app couldn’t load the list of items.

 ![Screenshot_20191124-101928](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/3/7/37b1c628dedaf875f2818fe94b6b0f69b13df22d.jpeg)

Sometimes it’s possible to load the list one time (e.g.after a device reboot), but always failing on the second try. And never works again until reboot.

Any hints?

Device: OnePlus 3 with Android 9

Thanks,  
Huaba

---

<div class="post-metadata">

**Author:** ![mueller-ma](https://community.openhab.org/user_avatar/community.openhab.org/mueller-ma/32/12448_2.png) [@mueller-ma](https://community.openhab.org/u/mueller-ma)\
**Post date:** [November 24, 2019, 9:52am UTC](https://community.openhab.org/t/solved-openhab-app-widget-loading-items-failed/86136/2 "2019-11-24T09:52:30Z")

</div>

Can you try it again and post the log afterwards?

---

<div class="post-metadata">

**Author:** ![Huaba](https://community.openhab.org/user_avatar/community.openhab.org/huaba/32/72245_2.png) [@Huaba](https://community.openhab.org/u/Huaba)\
**Post date:** [November 24, 2019, 11:29am UTC](https://community.openhab.org/t/solved-openhab-app-widget-loading-items-failed/86136/3 "2019-11-24T11:29:22Z")

</div>

Here is the log from the app:

11-24 12:16:21.609 16541 16541 D ItemUpdateWidget: onReceive() Intent { act=android.appwidget.action.APPWIDGET\_UPDATE flg=0x10 cmp=org.openhab.habdroid/.ui.homescreenwidget.ItemUpdateWidget (has extras) }  
11-24 12:16:21.609 16541 16541 D ItemUpdateWidget: onUpdate()  
11-24 12:16:21.609 16541 16541 D ItemUpdateWidget: id: 26  
11-24 12:16:21.650 16541 16541 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@e04d808  
11-24 12:16:21.687 16541 16541 I AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.  
11-24 12:16:21.693 16541 16541 I am\_on\_create\_called: [0,org.openhab.habdroid.ui.ItemUpdateWidgetItemPickerActivity,performCreate]  
11-24 12:16:21.697 16541 16541 I am\_on\_start\_called: [0,org.openhab.habdroid.ui.ItemUpdateWidgetItemPickerActivity,handleStartActivity]  
11-24 12:16:21.698 16541 16541 D AbstractItemPickerActivity: onResume()  
11-24 12:16:21.698 16541 16541 D AbstractItemPickerActivity: loadItems()  
11-24 12:16:21.698 16541 16541 I am\_on\_resume\_called: [0,org.openhab.habdroid.ui.ItemUpdateWidgetItemPickerActivity,RESUME\_ACTIVITY]  
11-24 12:16:24.110 16541 16541 D AbstractItemPickerActivity: onPause()  
11-24 12:16:24.110 16541 16541 I am\_on\_paused\_called: [0,org.openhab.habdroid.ui.ItemUpdateWidgetItemPickerActivity,performPause]  
11-24 12:16:24.140 16541 16541 D ItemUpdateWidget: onReceive() Intent { act=android.appwidget.action.APPWIDGET\_DELETED flg=0x10 cmp=org.openhab.habdroid/.ui.homescreenwidget.ItemUpdateWidget (has extras) }  
11-24 12:16:24.140 16541 16541 D ItemUpdateWidget: onDeleted()  
11-24 12:16:24.140 16541 16541 D ItemUpdateWidget: Deleting data for id 26  
11-24 12:16:24.488 16541 16541 I am\_on\_stop\_called: [0,org.openhab.habdroid.ui.ItemUpdateWidgetItemPickerActivity,LIFECYCLER\_STOP\_ACTIVITY]  
11-24 12:16:24.492 16541 16541 I am\_on\_destroy\_called: [0,org.openhab.habdroid.ui.ItemUpdateWidgetItemPickerActivity,performDestroy]  
11-24 12:16:29.857 16541 16541 I am\_on\_restart\_called: [0,org.openhab.habdroid.ui.LogActivity,performRestartActivity]  
11-24 12:16:29.861 16541 16541 I am\_on\_start\_called: [0,org.openhab.habdroid.ui.LogActivity,handleStartActivity]  
11-24 12:16:29.866 16541 16541 I am\_on\_resume\_called: [0,org.openhab.habdroid.ui.LogActivity,RESUME\_ACTIVITY]

At these attempts I have noticed, that the creation of an widget always works, if i started the Openhab app first. So it is connected…

My problem would be solved, but perhaps there is something to improve.

---

<div class="post-metadata">

**Author:** ![mueller-ma](https://community.openhab.org/user_avatar/community.openhab.org/mueller-ma/32/12448_2.png) [@mueller-ma](https://community.openhab.org/u/mueller-ma)\
**Post date:** [November 24, 2019, 4:01pm UTC](https://community.openhab.org/t/solved-openhab-app-widget-loading-items-failed/86136/4 "2019-11-24T16:01:19Z")

</div>

Found the issue: [AbstractItemPickerActivity should call ConnectionFactory.waitForInitialization() · Issue #1696 · openhab/openhab-android · GitHub](https://github.com/openhab/openhab-android/issues/1696)

Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![mueller-ma](https://community.openhab.org/user_avatar/community.openhab.org/mueller-ma/32/12448_2.png) [@mueller-ma](https://community.openhab.org/u/mueller-ma)\
**Post date:** [November 28, 2019, 7:19pm UTC](https://community.openhab.org/t/solved-openhab-app-widget-loading-items-failed/86136/5 "2019-11-28T19:19:33Z")

</div>

Fixed in [2.10.17-beta](https://github.com/openhab/openhab-android/releases/tag/2.10.17-beta).
