Home键preSS事件监听器监听器、事件、Home、preSS

由网友(徒叹无你)分享简介:可能重复: How我可以检测用户pressing HOME键在我的活动? 我使用低于code线发现,如果使用preSS的Andr​​oid手机,其做工精细。I am using below lines of code to find if the use press the backkey from androi...

可能重复:   How我可以检测用户pressing HOME键在我的活动?

我使用低于code线发现,如果使用preSS的Andr​​oid手机,其做工精细。

I am using below lines of code to find if the use press the backkey from android phone,its working fine .

不过,我想为检测home键按钮preSS事件,任何人都可以引导它如何可能?

But I want to detect home key Button press event,Anyone can guide how it is possible ?

@Override
public void onBackPressed() 
{
    Toast.makeText(getApplicationContext(),"BackKeyPressed", Toast.LENGTH_LONG).show();
    super.onBackPressed();
}

感谢。 。 。

Thanks . . .

推荐答案

您无法探测家按键preSS事件,不好意思。

You cannot "detect home key Button press event", sorry.

阅读全文

相关推荐

最新文章