0

ホームキーを取得したいのですが、着信がありますsetType(WindowManager.LayoutParam.TYPE_KEYGUARD)onAttachedToWindow、動作しません。ホームキーを受信できません。onKeyDown

誰がこの問題を起こしたのですか? 提案をするか、他の解決策を教えてください。

4

1 に答える 1

1

This solution no longer works, at least as of Android 4.0, based on my testing. Only the OS should handle the HOME button. If you want to be displayed when the user presses HOME, implement a home screen.

于 2012-02-06T17:54:47.833 に答える