I have Two Tabs Tab-1 and Tab-2 at bottom of the screen.
Send button is at Tab-1.
When user clicks send button,it will switch to Tab-2 but i lost view of both Tab-1 and Tab-2 which is at bottom.
What’s wrong with my code ?
Below is my code:
sendButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent myIntent=new Intent(CurrentActivity.this, AboutActivity.class);
CurrentActivity.this.Tab2Activity(myIntent);
}
});
In the parent activity class where the tabhost is created implement a method like the one below:
Inside of the tab that I would like to be able to switch internally to another tab I created the method below: