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.
You can try to use adb tu simulate keyboard, with the command "input keyevent".
Take a look here:
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.
This might help you
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.
Thanks for all your help. It was very helpful.
I am planning to add HOME and BACK button using Expansion GPIO header.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.