Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Register New File Type Association with MP3

I am beginner with Android Studio. I have an MP3 file in my res\raw folder. When I sync project with Gradle files. I get the following dialog box:

enter image description here

How do I allow for MP3 files in my project?

I read this: Register new file type in Android, but I'm not building an MP3 player. My intention is for the user to have an MP3 player currently installed on their device.

I also tried navigating to File -> Settings -> Plugins and searching for an MP3 player for Android Studio.

Should I just select Text files and move on?

I do not need Android Studio to play MP3 files.

like image 748
nu everest Avatar asked Feb 19 '15 18:02

nu everest


People also ask

How do I change a file type to MP3?

Then go to File > Export Audio and choose the location to save the file, give it a name, and choose MP3 as the file type. If you're a more advanced user, you can choose the audio quality and stereo settings. You will get a screen asking if you want to type in any metadata for the file manually.

Which type of file format MP3 is used for?

MP3 (MPEG-1 Audio Layer-3) is a standard technology and format for compressing a sound sequence into a very small file (about one-twelfth the size of the original file) while preserving the original level of sound quality when it is played. MP3 files (identified with the file name suffix of ".


1 Answers

That window is just how you want Android studio to open the file so you can visualize/listen to the file. It does not affect how the file is handled by android at all.

Since Android Studio does not have a media player, I suggest you to select Open matching files in associated application That will launch your default music player and play that mp3.

Note: remember that all the files under res should ONLY contain lowercase letters, numbers and underscores. If you have your mp3 with the wrong name conditions will not compile.

like image 60
Marcus Gabilheri Avatar answered Sep 28 '22 01:09

Marcus Gabilheri