Android on TabHost little more depth of the problem, there is the hard return key on the treatment.

Posted by user365723 on Stack Overflow See other posts from Stack Overflow or by user365723
Published on 2010-06-13T14:37:47Z Indexed on 2010/06/13 14:42 UTC
Read the original article Hit count: 209

Filed under:
|

Hello everybody, I have a question on the Android Activity, for example I have a TabHost, and there are included four Activities, the first tab is a search Activity, enter a keyword in the current result of this Activity to return, and in the current Activity display. Is called to display the search results themselves. And after searching several times, and then return to key mobile phone keypad, the display is the result of the last search keyword, I want the press back key to return to the last call of the Activity or TabHost. Should I do?

By the way, in a tab in the use of Intent calls a Activity,

eg: host.addTab (host.newTabSpec ("friend"). setIndicator ("search") . SetContent (new Intent (this, Search.class)));

In this Activity in the need to call another Activity,

e.g: startActivity (new Intent (this, Other.class));

Also called another Activity displayed on this tab, but not yet jump out of the show. I ask how you can achieve this?

© Stack Overflow or respective owner

Related posts about android

Related posts about tabhost