Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当主 UI 在新线程上时,我似乎无法让软键输入工作。我想这样做,所以当他们按下后退软键时,它会烤面包之类的。
源代码: http: //pastebin.com/8gh41j9c
谢谢!
而主用户界面在一个新线程上
“主 UI”永远不会在“新线程”上。“主 UI”不在您链接到的代码中的“新线程”上。
我想这样做,所以当他们按下后退软键时,它会烤面包之类的。
覆盖onBackPressed()Android 2.x 设备。
onBackPressed()