Hi All,

I’d like to implement a home screen widget which displays system
infromation.
The whole application is based on Google's example WeatherListWidget.
I am using a ViewFlipper which has 5 childs, each one is a ListView.
The data is contained in a ContentPovider, which has 5 ArrayLists.

Can I somehow bind the ArrayLists to the appropriate ListViews?

The provider’s query method works like a charm, it returns a Cursor
only with the required data.

I’ve tried it in the WidgetProvider’s onUpdate method (which is called
when I add the widget to the Launcher) with the
RemoteViews.setRemoteAdapter method, but I can bind only one of the
ListViews with this, as further binds will overwrite the previous one:

<CODE>
final Intent intent = new Intent(context, SysWidgetService.class);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
    appWidgetIds[i]);
intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME)));
RemoteViews rv = new RemoteViews(context.getPackageName(),
    R.layout.widget_layout);
rv.setRemoteAdapter(appWidgetIds[i], R.id.wifilist, intent);
</CODE>

Or should I do the whole thing completely different? (Any tips?)

Thanks in advance.
sethyx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to