Android 在选项卡中创建多个活动

Android 在选项卡中创建多个活动,android,tabs,Android,Tabs,我真的想从选项卡视图中的一个活动移动到同一选项卡中的另一个活动 public void onClick (View view) { // This creates an intent to call the 'Called' activity i1 = new Intent(this.getBaseContext(),Called.class); // calls the method to replace View. repl

我真的想从选项卡视图中的一个活动移动到同一选项卡中的另一个活动

public void onClick (View view) {
    // This creates an intent to call the 'Called' activity             
    i1 = new Intent(this.getBaseContext(),Called.class);

    // calls the method to replace View.    
    replaceContentView("Called", i1);
}
试试这个

TabSpec spec=...//our tabSpec
Intent intent = new Intent(this.getBaseContext(), Called.class);
spec.setContent(videosIntent);

你应该考虑使用这个问题的片段。如果你使用Android 3或更高的片段,请使用这个链接…