Hi All,

I need to create a List  ex: item1 , item 2, item3  . IF I click on
item1  it should display a list again with item 4 ,item5 , items .
which means I have sub -list inside list  . And if I click on Item4 it
should go to its activity . Each item has separate activities .so I
have followed androids sample application "AppDemos" where it has the
code which I need .
In my string.xml I have given the label names as - test/item1/item4
and I set ListAdapter as -
setListAdapter(new SimpleAdapter(this, getData1(path1),
                android.R.layout.simple_list_item_1, new String[]
{ "title1" },
                new int[] { android.R.id.text1 }));
and querying all the list activites as follows-

PackageManager pm1 = getPackageManager();

  List<ResolveInfo> list = pm1.queryIntentActivities(mainIntent1, 0);

and spilt the label items based on "/" as-
   prefixPath1 = prefix.split("/");


But the problem is here I am getting all the activties defined in
other applications also . I need to get only the activites defined in
my application alone .. Can anyone suggest me how to get/query only
activites defined in single application alone .

Thanks
Chandana

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