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 :)
精彩评论