How to implement android Hardware HOME_KEY Function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to implement android Hardware HOME_KEY Function

Jump to solution
858 Views
lifusong
Contributor IV

Dear sir.

   AS the title,any body can help me?

any reply is helpful.

BSP version is 4.4.3_r1 kernel 3.10.53 uboot 2014.04

there HAVE a GPIO Pin can used by detect HOME_KEY press

Labels (2)
0 Kudos
1 Solution
644 Views
lifusong
Contributor IV

Only Need Add code inside dts file ,look seem as voluem and the different is the linux_code

View solution in original post

0 Kudos
4 Replies
644 Views
lifusong
Contributor IV

help please.

0 Kudos
644 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi,

On the following links you could find useful information that may help you to implement the HOME_KEY functionality on Android:

Android Buttons - IOMUX - safeMode

http://stackoverflow.com/questions/2208912/how-can-i-detect-user-pressing-home-key-in-my-activity

https://groups.google.com/forum/#!topic/android-porting/Gd90_zQNZEM


Hope this will be useful for you.
Best regards!
/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
644 Views
lifusong
Contributor IV

Hi CarlosCasillas

thanks for your reply.

we use bsp version is 4.4.3_r1 and kernel is 3.10.53 ,so this function defined in the dts file.but  from FSL office web download the source code don't have HOME_KEY defined. i don't know how to do it.

HOME_KEY function inside android os depend android APP to implement  it or android os have this function?

below link is my asked at google groups.

https://groups.google.com/forum/#!topic/android-porting/Gd90_zQNZEM

0 Kudos
645 Views
lifusong
Contributor IV

Only Need Add code inside dts file ,look seem as voluem and the different is the linux_code

0 Kudos