开发者

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

开发者 https://www.devze.com 2023-01-28 11:19 出处:网络
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.

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

精彩评论

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