Tommy,
Another suggestion:
I guess you are already using a service, so update code using
RemoteViews is already isolated in one place.
You could implement your own subclass of RemoteViews, override various
methods for changing views, and instead directly update views in your
activity.
Or perhaps make it prettier with a base Java interface, factories, etc.
- but the main idea would still be the same. The weather update code
would be taking to an object that in turn updates either remote views in
a widget, or local views inside an activity.
-- Kostya
06.06.2010 23:31, Kumar Bibek пишет:
You can at the most use the layout of the widget and the update code.
Other than that, I guess, you cannot bring the widget as it is on your
activity. A widget has a lifecycle of it's own.
Thanks and Regards,
Kumar Bibek
On Jun 3, 12:37 am, Tommy<[email protected]> wrote:
Hey everyone,
I was wondering if there is a way to show a widget that I have created
inside an activity. I have a weather widget and I also have an app I
am working on that I would like to include weather reports in. Is
there a way I can just re-use the widget code and make it show inside
the weather activity?
Thanks for your time and help,
Tommy
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en