[SOLVED] Openhab App Widget: Loading items failed

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.

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

Can you try it again and post the log afterwards?

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.

Found the issue: https://github.com/openhab/openhab-android/issues/1696

Thanks for reporting!

Fixed in 2.10.17-beta.

1 Like