I’m in a mobile programming class right now and we have to make a simple media player. Right now I’m trying to make it so that when a user opens an mp3 my app comes up as a possible default? How do I code this?
Share
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 can’t “make an app a default”. The user makes it their default.
Try the following
<intent-filter>on your activity that sets up the media playback:Then, if some app fires off an
ACTION_VIEWIntenton an MP3 file, your activity should appear along with other activities from other apps in a chooser dialog.