How to associate/open mp3 files in raw folder?

Asked

Viewed 655 times

4

I’m in trouble with songs, whenever I add some music and I will run some error code, whenever I click on the music in the raw folder appears a text , in tutorials that I saw the person clicks on the music and plays it I will show photos,

inserir a descrição da imagem aqui

1 answer

2


This happens because when copying the file to the raw folder you associated it as text or something like that.

Anyway Androidstudio doesn’t have an internal music player.

What you should do is, in the association window, choose the option "Open matching files in Associated application"
This will open the registered application on Windows to open files with the mp3 extension.

inserir a descrição da imagem aqui

The file association can be managed in File -> Settings ; Editor/File Types

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.