Hi, unfortunately you can't do this yourself, since it is the container that
wants to host the widget that needs to start the widget picker.  So the user
has to go to their home screen, and in its UI ask to add a widget.

On Tue, Aug 11, 2009 at 9:37 AM, String <[email protected]>wrote:

>
> Reposting this from Android Discuss, as it's probably more on-topic
> here.
>
> There's an ongoing issue with users who install an appwidget app from
> the Market and then don't know how to add the widget to their home
> screen. It's been suggested to add a Help or About activity with
> instructions - and I've done that - but I'd really rather include an
> "Install Widget" button on my main activity. Anyone have any clues on
> how to make that happen?
>
> I tried firing off an ACTION_APPWIDGET_PICK intent, but that always
> seems to NPE. I suspect
> I don't have the extras right, but OTOH, reading the docs it doesn't
> sound like exactly what I want anyway.
>
> Thanks,
>
> String
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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