Hi guys

When I run my WebServiceWidget I am developing it sort of works with
one instance.

If I have two instances with different web service urls, they both end
up with the output from one of the web services.

So, my question is 'How do you handle multiple instances of the same
widget."

I know about appWidgetId and the array of appWidgetIds that gets
passed about but the problem seems to be that all my instances write
to a resource called:

For example in the Service that does the http request and xml parsing
I do this to update the widget:

            updateViews = new RemoteViews(context.getPackageName(),
R.layout.widget_message);
            updateViews.setTextViewText(R.id.message, result);

There is no refence to appWidgetId here so do all widgets of the same
class get updated?

Can someone please explain how to maintain seperate instances of the
same widget.

Some code examples would be nice...

Regards

Lyndon
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to