开发者

how to put a ringtone on android emulator

开发者 https://www.devze.com 2023-02-06 13:48 出处:网络
I want to put some ringtone on the android em开发者_JAVA技巧ulator however, i can\'t seem to find a easy way to do this is there someting i\'m missing?You need to create the /sdcard/media/audio/ringto

I want to put some ringtone on the android em开发者_JAVA技巧ulator however, i can't seem to find a easy way to do this is there someting i'm missing?


You need to create the /sdcard/media/audio/ringtones/ directory on the sdcard.

To do this login via adb shell and do mkdir /media/audio/ringtones/ then push the file to ringtones. Then go to sounds on emulator and select sound, menu and select "use as ringtone".

If you can't create the directory, su and try again.


Just upload the audiofile (ogg or mp3 format) via adb push and then set it up just like you would on a real phone.


I had the same question I tried the accepted answer. But the ringtone did not show up in the ringtones displayed by android. So I had to unmount and then remount the SD card and then it worked for me :)

0

精彩评论

暂无评论...
验证码 换一张
取 消