开发者

Android: Getting user input (Soft keys) on a new thread

I cant seem to get the soft keys input to work while 开发者_如何学运维the main UI is on a new thread. I want to make it so when they hit the Back soft key it will toast or something.

Source Code: http://pastebin.com/8gh41j9c

Thanks!


while the main UI is on a new thread

The "main UI" is never on "a new thread". The "main UI" is not on "a new thread" in the code you linked to.

I want to make it so when they hit the Back soft key it will toast or something.

Override onBackPressed() for Android 2.x devices.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜