I have an activity which has four tab. first tab has list view and some list item . after clicking on list item i want to open an activity on the same tab (first tab). I couldn't find any solution of that.
help me !! Thanks
I have an activity which has four tab. first tab has list view and some list item . after clicking on list item i want to open an activity on the same tab (first tab). I couldn't find any solution of that.
help me !! Thanks
There is a way to open a new activity, which is with an Intent, so you can do the following:
Intent intent=new Intent(Activity.this or this,Activity2.class);
//here you can add the flags you might need
startActivity(intent);
The activity Activity.this or this is the one that launches the new Activity, so the code must be inside the Activity that is showing the tab you are using.For example, if you need to change the title you can add the following:
@Override
public void onResume()
{
super.onResume();
this.getParent().setTitle("Your title");
}