Hello,
I am using BeagleBoard C4 and Android 2.3.4 GingerBread.
And I have an 4.3" OLED for GUI. Both of them works fine. But I want to ask a question.
How can I configure S1 User Button (on BeagleBoard C4) as Home Button in Android ?
I always have to use a mouse for browsing menu.
Thanks.
Best.
Hi,
You can try to use adb tu simulate keyboard, with the command "input keyevent".
Take a look here:
http://groups.google.com/group/android-developers/browse_thread/thread/a4705c3f62414f90?pli=1
BR,
Steve.
You can modify the key code specified to user button as KEY_HOME in board specific file..
Edit the kernel/arch/arm/mach-omap2/board-omap3beagle.c file and Modify the user button entry in structure static struct gpio_keys_button gpio_buttons[]. In user button entry change the .code variable to KEY_HOME. Rebuild the kernel and use it.
Thanks,
Faisal H
This might help you
http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_PortingGuides#How_to_designate_a_POWER_key
satish
Kindly click the verify answer button on this post if it answer your question.
Thanks for answers. Faisal's method is works great.
Faisal , Where can I find the character codes(KEY_HOME, KEY_MENU etc.) ?
I know only KEY_HOME and KEY_BACK. And tested both of them.
Check this header file <android-source>/bionic/libc/kernel/common/linux/input.h line no 87 for more key codes.
Hi Faisal,
Thanks for all your help. It was very helpful.
I am planning to add HOME and BACK button using Expansion GPIO header.