How can I make my app set a mp3 stored in the SD Card as a ringtone? my app uses android 2.1+?
Thanks :D
Here you go. :)
http://www.ceveni.com/2009/07/ringtone-picker-in-android-with-intent.html
Related
like a media file say video by any means like bluetooth or wifi. The point is i dont want someone to copy my video when phone is in their hands when i am not around?
If you want to do this via programmatically, store your media files in a separate file and prefix your folder with a "." (dot). then folder will be invisible.
if you need more information.. i would like to help.. first try it yourself and ask for source code help
If you want some android application.. check following application from android app store
1) Hide Something - Photo, Video
2) File Hide Expert
3) Hide Images Videos and Files
I know if the music file under the 'Resources', it can work well.
But now, the music file under the '/data/' directory. It cant't play! why?
You can access via absolute path, example: /data/data/your.package.name/files/music.mp3
in my application, I want to be able to select an audio file which is on the device to be used. The standard audio player in Android 2.3 "Music" offers everything I need to fullfill the requirements. Is it possible to send an Intent to open the Music app, select a song and give back the audio file id as result to my application?
thanks in advance!
greets,
Andi
Have you tried using the INTENT_ACTION_MEDIA_SEARCH? It seems to do what you are looking for..
I have used the following code: the mp3 is saved in the mobile sdcard.
notification.sound = Uri.parse("file:///sdcard/File/sdcard/introduction_file.mp3");
do you know how a mp3 file can be played as an application recources and not from the sdcard?
thank you
See android guide for playing from raw resource.
My first android app was a soundboard, and it works great. When you set a sound as a ringtone, it saved the file to the ringtones folder. Someone took advantage of that and stole my sounds, and published their own soundboard with my sounds.
I dont want that to happen again with my next soundboard, so my question is:
is it possible to save a sound as a ringtone or notification without saving it?
EDIT: If this is not possible, I would like to know what I can do so I don't get my sound files stolen.
I do not believe it possible seeing as there would be no reference to the sound when the ringtone was to go off.
Uri path = Uri.parse("android.resource://[package]/[res id]");