开发者

I need to disable Home Key or perform some activity when home key is pressed in android

I need perform some action on press of home 开发者_Go百科key like starting activity when some one presses the home key...how to do it?


If what you really want is to perform some actions when your activity leaves the foreground, see the activity lifecycle. Your activity will have its onPause method called when it is no longer in the foreground, and onStop called when it is no longer visible.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜