project
-
can anyone help me.. In android i have taken a listview and i have a created a list view ie a catgeory now to now i have to make a sub catgeory in it.how to implement that. wen i click the catgeory its goes to subcatgeory n i want wen i click a catgeory it goes to same screen and replace it. i mean i dont want to make separate screen for all my sub catgeory can anyone help me its urgent this is mycode i have done upto here public class MainActivity extends Activity { ListView lv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lv=(ListView)findViewById(R.id.listView1); String[] Wishlist={"VisitTop10beaches","Adventures","Sports","Camp Site","Visit10Beautyfull City","VisitOneOfSevenContients","VisitTopCasinos","OwnadreamCar","VisitSevenWondersOfTheWorld","HolyPalces","UniqueTransportModes"}; ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1,Wishlist); lv.setAdapter(adapter); lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub } }); }