I’d like to make something you might call a dynamic folder which would contain a list apps filtered by e.g. id (package name) or by some part of a visible name.
So I need something like you can use for contacts:
Cursor contacts = managedQuery(ContactsContract.Contacts.CONTENT_URI,
new String[]{
ContactsContract.Contacts.DISPLAY_NAME,
ContactsContract.Contacts._ID
},
ContactsContract.Contacts.HAS_PHONE_NUMBER + "='1'"
, null, null)
but I need a query for listing apps.
I would also need a way to run an application when chosen from list.
You can write something like :