How to implement android Hardware HOME_KEY Function

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to implement android Hardware HOME_KEY Function

跳至解决方案
2,580 次查看
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

标签 (2)
0 项奖励
回复
1 解答
2,366 次查看
lifusong
Contributor IV

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

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,366 次查看
lifusong
Contributor IV

help please.

0 项奖励
回复
2,366 次查看
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 项奖励
回复
2,366 次查看
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 项奖励
回复
2,367 次查看
lifusong
Contributor IV

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

0 项奖励
回复