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.
精彩评论