android tab activity go to previous tag
===

I have an activity with 5 tabs. Everyhing looks ok when I go from tab1 to tab 2 or tab3. How to go back programatically from tab2 to tab 1?

This
 

  

>   Intent myIntent = new Intent(this, Tab1.class);
>     			    
>     			    myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
>     			    
>     			    startActivity(myIntent);

is not wsorking properly because it stars activity 1 without any tab. How to solve it?
Thank you! Appreciate
