Play music in android [duplicate] - android

This question already has answers here:
How to play audio files one after the other
(3 answers)
Closed 9 years ago.
I want to play a number of sound files in raw directory one after another in android.
How to do that?
Please anyone provide me an example.
Thanks in advance.

Look into MediaPlayer class documentation. You will all information there.
Want more, get the Android Media Player code

you should try this How to play audio files one after the other the code here will help you to play audio files one after another from assets directory.

Related

How to create an app like youtube for dowload and show video [duplicate]

This question already has answers here:
Private file for an app
(5 answers)
Closed 3 years ago.
YouTube after the download file, just show it in the youtube app
. Where the file is stored and how it can be created application that open my videos and files in my application
You can use Room database in your app to store your files and it will apperar on your mobile storage or anything go and search for it

How to extract sound of unity game from apk?

I previously developed a unity game many years ago.
Now I have lost my project and I only have an apk.
To say in short, in my new game I need some audio files from that game. I have extracted the apk but strangely I haven't found any audio formatted file in the asset!
So what are the formats of unity audio assets?!
and how can I extract and change them to common formats like .ogg or .mp3?
Thanks for your attention.
You can try Unity Assets Explorer.
http://forum.xentax.com/viewtopic.php?f=10&t=10085
I didn't find any solution(stop searching more although, you maybe find something on more googling)
But for those who have same requirement, I did it by an android application that work only on rooted devices, which can record sounds internally.
Hope to help:)

Can I somehow embed location data into a video file in android? [duplicate]

This question already has an answer here:
Geotagging a captured video
(1 answer)
Closed 9 years ago.
Can I somehow embed location data into a video file in android?
Currently my app creates a video file and gets location info but I have no idea if it is possible to embed location info (lattitude, longitude) into my video file.
I could use ffmpeg or whatever for that (I'm using ffmpeg for some operations on my video).
Alas, I have not a slightest idea how to embed GPS data into my video, if at all possible.
Your question seems to be a duplicate of this one: Geotagging a captured video
But nevertheless, taken from: http://mobile.dzone.com/news/reading-gps-latitude-and
You may know that even Android doesn’t “geotag” videos this is not quite true. Because after using you gallery you can see where those videos are shot. This is fantastic, but actually the real information about where the video has been taken is not into the video file, but it’s in an additional log file that keeps it. Thus actually the video files doesn’t know the geo coordinates.
So I think you can't. You have to store the geo information in an extra file, like Android is doing it. Because MP4 cannot store geotags.
But .MOV files can. So if you can store a MOV file, maybe you can add geotags to it.

can i direct play .caf file in android? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Can an Android phone decode and play back a *.caf file w/ iLBC codec?
I am developing such type of application ,In my android application play a1.caf file .
I want to know ,is possible to play .caf file in android.
If yes ,then how to play ?
No you can't http://developer.android.com/guide/appendix/media-formats.html state's all the formats used.
You would have to convert to AAC or WAV before you can use it
Android not listed in doc of support media format, means you can't, check out supported media format which android provide.
Android supported media formats

Playing .pls file not working in android 2.2 [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to stream an .pls audio file in android 2.2
Can any body tell how to stream and play an .pls audio file using media player in android 2.2...
As far as I know .pls file contain information about songs or live radio stream. For exmaple when you use shoutcast api it returns .pls file which contain information related to list of radio stations like url of live radio stream, station name etc. Try opening it in notepad to see its format and information it contain. You have to parse url of song or station from it.
First of all read the pls specification. You'll see it's quite straightforward. Just parse the pls file and extract the songs that you want to play.

Categories

Resources