Hi, I want to change the current activity inside a tab in a tab activity,
after some research, I know that I need to use activity group to go this.
then I created a new class extends ActivityGroup with the code below:
public class FavShop extends ActivityGroup{ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LocalActivityManager m = getLocalActivityManager(); Intent i = new Intent(this, fav_shops.class); Window window = m.startActivity("favourite shop",i); setContentView(window.getDecorView()); } }
then I run the program, the program throw the ActivityNotFoundException when the intent for the tab is launched
I have no idea how to solve this problem, could anyone help me?