开发者

How do I overwrite the functionality of the home button?

Essentially, I just want to change the home button from just hiding my开发者_开发问答 app to killing the activity that is on the screen.

I thought about writing a broadcast receiver that kills the activity, but I'm not sure how to kill the activity from the receiver.

How do I change the functionality of the home button to "finish" the specific activity?

Thanks


How do I change the functionality of the home button to "finish" the specific activity?

You don't. The most you can do is create an SDK application that implements an alternative home screen. You cannot otherwise alter the HOME button behavior from the SDK.

However, you are welcome to roll your own firmware and have the HOME button do whatever you want for your own phone, or other phones you can arrange to get that firmware.


You CANNOT intercept the home button.

Period!

:)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜