android intent - How to Programmically go back to a Tab Activity from sub activity -


i created 4 tabs using tabhost in application,when click button in the first tabactivity(request.class), go class called edit.class, want go edit.class request.class tried intent pass 1 activity another

   intent intent = new intent(edit.this,request.class);  startactivity(intent); 

it worked, doesnt show tabs in request class, load xml corresponding request.class. how solve ?

                   |tab1|tab2|tab3|tab4|                       |                 edit.class 

here tab1 request.class, need go edit.class request.class, how possible?

try following code:

public boolean onkeydown(int keycode, keyevent event) {         if (keycode == keyevent.keycode_back) {           intent = new intent(activity1.this,activity2.class);              startactivity(i);            return true;     }     return super.onkeydown(keycode, event); } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -