> 1)  When creating an AppWidgetHost instance, there is a hostId that
> needs to be supplied, what happens if this collides with another
> application's hostId?

You can use any hostId you'd like, and only need to be unique inside
of your package name.  (The system keys them on both the package name
and the hostId combined.)

> 2) It seems the only way to obtain an AppWidgetProviderInfo object for
> an AppWidget is to throw the APPWIDGET_PICKER intent.  Is this true?
> Or is there another way I can directly request it from an
> application?  The reason being, I only want a subset of the widgets,
> and I know what packages contain them, so I don't need the picker to
> pop up.

You could walk the PackageManager information yourself and figure out
everyone who provides widgets, but you'll still need to launch the
PICK intent explicitly.  The PICK intent is special because the system
is the only one we trust to bind appWidgetIds to a specific widget
that the user has picked.

We could totally add something like filtering or categories to the
list that PICK exposes to users, but that's a topic for future
releases.

> 3) Also, can I pass extra data to the AppWidget's creation activity
> for use when figuring out what to display?

Sure, you can add any extras to the CONFIGURE intent, such as
positioning information.  Most widgets will probably just ignore
extras, but some could take advantage of them.


-- 
Jeff Sharkey
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to