I want to navigate my ListActivity like Navigation-based in iPhone.I
try to add ActivityGroup in TabHost but it doesn't work.
I start the second intent with the same LocalManager but it doesn't
change to second activity.

I have TabHost and it startActivityGroup intent

     host.addTab(host.newTabSpec("one")
                        .setIndicator("home",
getResources().getDrawable(R.drawable.home))
                        .setContent(new Intent(this, TabActivityGroup.class)
                        .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));


In TabActivityGroup  (start first activity intent)

     public static LocalActivityManager mLocalActivityManager;

     mLocalActivityManager = getLocalActivityManager();
              View view = mLocalActivityManager
                                        .startActivity("home", new
Intent(this,HomeActivity.class)
                                        
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
                                        .getDecorView();
               this.setContentView(view);


In HomeActivity extends ListActivity (start second activity intent
when click item in ListView)

     public void onListItemClick(ListView parent, View v,int
position,long id) {

        
TabActivityGroup.mLocalActivityManager.startActivity("secondActivity",
new Intent(this.getParent(),SecondActivity.class)
                                                        
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));

        }


After I clicked onListViewItem in debugger show that oncreate method
in SecondActivity was called.
But in tabHost is not changed to SecondActivity.

I don't know how to navigate ActivityGroup to SecondActivity(forward)
and also backward.
Please help me. Thank you.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to