Thanks Dianne, that worked just fine.

On Wed, Jun 17, 2009 at 5:47 PM, Dianne Hackborn <hack...@android.com>wrote:

> Look at PhoneWindowManager, which handles the end call key (long pressing
> to bring up the power dialog), and follow the trail to where the shutdown
> code is.
>
>
> On Wed, Jun 17, 2009 at 5:48 AM, F H <expelia...@googlemail.com> wrote:
>
>> Thanks Dianne,
>>
>> I can route through to the window manager, however, I'm still unclear as
>> to how to 'poke' the policy class to have it shut down - the Policy and
>> PolicyManager methods seem limited to creating new objects.
>>
>>
>>
>> On Tue, Jun 16, 2009 at 5:54 PM, Dianne Hackborn <hack...@android.com>wrote:
>>
>>> There is on way to do this, sorry.  If you are customizing a phone you
>>> could add an IPC call to the window manager to poke into the policy class to
>>> have it shown.
>>>
>>>
>>> On Tue, Jun 16, 2009 at 7:56 AM, F H <expelia...@googlemail.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I want to cause the PowerDialog to pop up in response to an item on a
>>>> menu (I have a button shortage) so that I can shut down. Do I do this by
>>>> attaching an 'intent' to the menu option (if so which one), or send a
>>>> message to a particular listener (what message and to who), or ...
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Dianne Hackborn
>>> Android framework engineer
>>> hack...@android.com
>>>
>>> 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.
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> 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.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to