How would i be able to get the mimeType from an application.
I am working on an application which filters certain installed applications based on the mimeType.
could someone please help me with this issue ?
thanks alot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
mime types are associated with activities. You can use List and PackageManager.queryIntentActivities(i, 0) to get all the activities and therefore applications for a given data mime type.
Else, you can get all applications (Launchable) by:
getIntents(Intent.ACTION_DEFAULT,Intent.CATEGORY_LAUNCHER,pm);
and now classify by String type = getIntent().getType();