I am working on a device that does not have a hardware Home, Back or
Menu button.  I am trying to create a soft keyboard with only these
three keys but I have not been able to get it working.  Does anyone
have any insight into my problem?

I first looked into injecting keypresses into a WindowManager but this
functionality seems to have been removed.

I then looked at creating a custom soft keyboard but that will not
work either.  Custom soft keyboards only inject their input into the
text fields they are attached to.  I can't send a Home, Back or Menu
keypress to the Android system.

I finally got the Home button working by using this intent to tell
Android to go to the Home screen:
                Intent HomeIntent = new Intent();
                HomeIntent.setAction(Intent.ACTION_MAIN);
                HomeIntent.addCategory(Intent.CATEGORY_HOME);
Unfortunately, I have not found an Intent to send for Menu and Back.

Does anyone know the correct way to do this?

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