Just send a key event with the appropriate key code.  Note that you probably
do not want to do this with, say, HOME, since that will leave your app and
then you aren't going to be able to send any more events to the focus
window.

On Thu, Nov 27, 2008 at 8:15 PM, sush <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I am testing my application using Instrumentation I am able to
> automate the virtual keys and UI clicks but I am unable to automate
> the emulator hardware keys such as, Home, Menu, Home etc...
>
> Please help me in this.
>
> Thanks in advance.
> Susama
> >
>


-- 
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.  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 android-developers@googlegroups.com
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