I wrote a vidoeplayer and was wondering… when you click a video file from some other app, say a file browser, a list of apps appear, that can open this video file.
How do I make my player also appear on that list?
Thanks!
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.
You have to register the
Intentyou want in your activity.From API 15, you need to add CATEGORY_APP_MUSIC to your app manifest, possibly under ACTION_MAIN intent filter.
If you want to target down to API 8, also use INTENT_ACTION_MUSIC_PLAYER in the intent filter.
Here’s a sample manifest part..
Hope this helps.