My app uses Firebase database and items are displayed correctly in a RecyclerView, but I want to display them also in a Widget. Since a widget is not an activity I run into all sort of problems using Firebase and ListView. Is there any way to populate a Widget from Firebase?
Asked
Active
Viewed 1,337 times
5

Frank van Puffelen
- 565,676
- 79
- 828
- 807

Pedro Gonzalez
- 1,429
- 2
- 19
- 30
-
Any updates on this? – Gurupad Mamadapur Mar 06 '17 at 18:09
-
Did you figure this out? – PaulNunezM Mar 25 '17 at 19:41
-
sorry to say, no I haven't – Pedro Gonzalez Mar 29 '17 at 08:13
-
https://stackoverflow.com/questions/39005779/android-widget-list-view-showing-same-content-for-every-item/39099682 I believe this answers your question. – Sushant Mathur Jun 21 '17 at 05:25
1 Answers
0
Taking more than 20 seconds in onDataSetChanged() to fetch data from internet/Firebase Database will not display data on widget listview. You will have to use CountDownLatch.
Also, here is an example https://github.com/mvescovo/item-reaper

Radhika Parmar
- 49
- 7