I am trying to develop an AppWidget with network data. So far I have an application (up and down) with a custom AsyncTaskLoader(gets the URL that gives the analyzed data) loaders inside my fragments. There is no cache or db to save this data. My best practice would be to use some of the existing classes + parsing classes, if possible.
Searching for many examples and tutorials I either found simple standalone widgets or others with content providers and an observer. None of them use a network connection.
Can I have a widget that gets data from online json and not for a solution / content provider? Any such example or guide would be really helpful!
My application supports 2.0 and higher. From my research, I found that I need to implement 2 widgets of Android 3+ and below. Is there any other easier way to avoid double coding?
Thanks in advance!
source
share