Dear All, I've created a tabhost app. For the app, when I try to navigate to second view at tab (a listview within the tab), however the second view will overlap the whole tabhost screen. Below are my calling, any idea how to solve this ? :
----start---
        ListView poiView = (ListView)findViewById(R.id.listView1);

        poiView.setOnItemClickListener(new OnItemClickListener(){
public void onItemClick(AdapterView<?> a, View v, int position, long id) {
                Log.d(tag, "Position : "+position);
                if(position == 0){
                    Log.d(tag, "Position 00: "+position);
Intent myIntent = new Intent(v.getContext(), Activity2.class);
                    myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                    startActivityForResult(myIntent, 0);
                }
                else if(position != 0){
Log.d(tag, "Position : "+position+" still under development");
                }
            }
        });
----end---

Thanks.

--
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