I make a app with a ListView. When i tap on a ListView Item, a .ogg soundfile should start playing. Not in my app, but in the default music player app of the user. How does it work? Thanks
P.S.: Sorry for my bad english
I believe you want an intent to open the file. Here's an example that should play the test.ogg file located on the sdcard:
Code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File("/sdcard/test.ogg");
intent.setDataAndType(Uri.fromFile(file), "audio/*");
startActivity(intent);
You'll most likely want to replace "/sdcard/test.ogg" with a string variable that gets set as "/PATH/TO/sound.ogg" once a selection is made. Then use the above code to open the music app and play the file.
Thanks man!
Related
Hi, no matter what music player i use on my XDAIIi i always get gaps in-between my songs. I have a lot of dance music which mixes into the next song on my CDs so if i play it on a CD player i have un-interrupted music but if i convert it to MP3 (CDex) then i have about a 1 sec gap from the 'end' of a song to when the next one starts.
Is this just the way it is or am i converting to MP3s incorrectly?
cheers
I seem to remember from my original Orange SPV smartphone days that there were workarounds for the fact that you couldn't skip forward movies, what you did was to create a playlist which pointed to different positions in the same file to simulate chapters. You could always try ripping your entire CD as one single MP3 and create a playlist for the individual songs in the file. That way if you play the playlist instead of the MP3 you can listen to it without gaps and still have the ability to jump forwards and backwards though it to a particular track.
This is how you do it.
File name = my album.mp3
Album title = my album
Track 1 = "one" Length = 3 mins
Track 2 - "two" length = 2 mins
Track 3 = "three" length = 6 mins
Playlist = my album.asx
Playlist contents
Code:
<asx version="3">
<TITLE> my album</TITLE>
<ENTRY>
<StartTime Value = "0:0.0"/>
<TITLE> one </TITLE>
<Ref Href = "my album.mp3"/>
<Duration Value= "3:00.0"/>
</ENTRY>
<ENTRY>
<StartTime Value = "3:00.0"/>
<TITLE> two </TITLE>
<Ref Href = "my album.mp3"/>
<Duration Value= "2:00.0"/>
</ENTRY>
<ENTRY>
<StartTime Value = "5:00.0"/>
<TITLE> three </TITLE>
<Ref Href = "my album.mp3"/>
<Duration Value= "6:00.0"/>
</ENTRY>
</asx>
Once you create the playlist put it into the same folder as your mp3, or if you want to have a seperate folder for the playlist and the mp3 then change all the <Ref Href = "my album.mp3"/> lines to something like <Ref Href = "..\my music\my album.mp3"/>, which assumes you store your MP3s in "some path\my music\" and your playlists in "(the same) some path\my playlists\"
It looks like quite a bit of work but I'd imagine that you won't need to be too accurate with your track timings, as long as they all add up. The tricky one is the start time as you need to remember to roll in all the track durations preceeding it. Madu (from modaco.com) had released an excel file with macros to enable you to partially automate the creation of the asx code but I can't seem to find it now.
The thought had already crossed my mind about ripping it to a single file with no chapters, do you know a good ripper that does this before i have to start downloading and installing everything i can find. I've already checked and CDex can't do this.
Haven't actually done it myself in a long time, but I'm sure that there are plenty of capable programs out there. CDex was one suggested on Modaco, I'm surprised it doesn't work, are you sure that you are selecting to extract a section of the CD to a compressed file and not just selecting tracks and ripping them?. You could always rip the raw data from the CD in BIN-CUE form and rename the .bin file to .wav then use any wave to mp3 convertor out there. This way you would also have a starting point for your playlist in the cue file.
Just had a play around with this and discovered that the playlist idea doesn't seem to work on the universal. I was able to set up the playlist and have all the songs entered into it, but when it reaches the end of the first track it just jumps back to the beginning again, ignoring the start time of the next track. Perhaps I'm just using the wrong format, I tried with both WMA and MP3, or perhaps its just WM05 which doesn't allow random entry into a file. If anyone else knows please post.
EDIT: Must be a Windows Mobile 05 or SD card problem, the playlist plays perfectly in windows, jumps to the right track and plays without any gaps.
shuflie said:
Haven't actually done it myself in a long time, but I'm sure that there are plenty of capable programs out there. CDex was one suggested on Modaco, I'm surprised it doesn't work, are you sure that you are selecting to extract a section of the CD to a compressed file and not just selecting tracks and ripping them?. You could always rip the raw data from the CD in BIN-CUE form and rename the .bin file to .wav then use any wave to mp3 convertor out there. This way you would also have a starting point for your playlist in the cue file.
Click to expand...
Click to collapse
You're right, CDex does do it!
I works too, great!
Thanks everyone.
johnk1973 said:
shuflie said:
Haven't actually done it myself in a long time, but I'm sure that there are plenty of capable programs out there. CDex was one suggested on Modaco, I'm surprised it doesn't work, are you sure that you are selecting to extract a section of the CD to a compressed file and not just selecting tracks and ripping them?. You could always rip the raw data from the CD in BIN-CUE form and rename the .bin file to .wav then use any wave to mp3 convertor out there. This way you would also have a starting point for your playlist in the cue file.
Click to expand...
Click to collapse
You're right, CDex does do it!
I works too, great!
Thanks everyone.
Click to expand...
Click to collapse
How about the playlist idea, are you using one or are you just playing the entire album from start to finish?
I'm not going to bother creating playlists, i'm waiting for the T-mobile MDA Vario II / HTC Hermes like anyone else!
Hi everyone!
I used to use Gallery Enabler (later renamed into Media Hidden) to exclude folders from SD media scanning, but I seem can't find the app on Market anymore. Could anyone please post a download link to the app?
More information about the app can be found here:
http://www.androidzoom.com/android_applications/tools/media-hidden_gxdt.html
Thanks indeed!
You could try Pandora or Private Media as well. In my opinion pandora is better as it lets you play files without restoring them to their original location.
Otherwise a very simple way of hiding a folder from gallery is to insert a .nomedia file in the folder. Creating a .nomedia file is easy. Just open a text editor & save a blank file with the name ".nomedia".
Hope this helps.
seventyfivein said:
You could try Pandora or Private Media as well. In my opinion pandora is better as it lets you play files without restoring them to their original location.
Otherwise a very simple way of hiding a folder from gallery is to insert a .nomedia file in the folder. Creating a .nomedia file is easy. Just open a text editor & save a blank file with the name ".nomedia".
Hope this helps.
Click to expand...
Click to collapse
Wicked!! Learn something new every day! I've been wondering if that was possible
You can also try Hide it Pro application. It can do all sorts of hiding like photos,videos,audio,application
I would like to hide certain folders from some applications but not others. In particular I would like to hide my podcasts from my mp3 player but not my podcast player.
Can this be done?
I just bought a LG G Pad and I added a 64GB SD Card to expand my storage. I put some videos on my 64gb sd card but now MX Player can't find them.....I have to use a file explorer app to find the movies and have to select MX to play them.
How can I make it so the app looks on the added sd card for playback?
Settings -> List -> Video folders
Did you check there first to see if the SD card path is included?
MX Player SD Card
CDB-Man said:
Settings -> List -> Video folders
Did you check there first to see if the SD card path is included?
Click to expand...
Click to collapse
Yeah I found the directory from within mx player like you told me to do but it's still showing no videos.....I know I have 2 of them in that specific folder.
BDMJ101 said:
Yeah I found the directory from within mx player like you told me to do but it's still showing no videos.....I know I have 2 of them in that specific folder.
Click to expand...
Click to collapse
There are some conditions in which your file may not show.
* If your file name starts with . (Dot) it will not be showed by default. Enable show hidden files and folders from Settings 》List
* Your file extension may not be a know video file extension or it may not be listed in the extension list. In that you can add your file extensions in Settings 》 Lists 》File extensions.
* If a file with the name .nomedia presents in a folder or in any of it's parent folders. Disable the option " Recognise nomedia " from Settings 》 Lists
* If you have excluded the path or any of it's parent path in video folders settings. Just go to the Settings 》Lists 》 Video folders. It may happen when you long press on folder & select hide accidentally. If the path of your file or any parent folder is listed in the video folders list in a strike through text, then select it and click show button.
Eg:
consider your file is in "/sdcard/x/y/" folder. If the same folder or any parent folder (like "/sdcard/" or "/sdcard/x/") is set as hidden in video folders or it contains a file with the name ".nomedia", then it will not be showed.
Sent from my SM-G900H using Tapatalk
MX Player SD Card
ktsamy said:
There are some conditions in which your file may not show.
* If your file name starts with . (Dot) it will not be showed by default. Enable show hidden files and folders from Settings 》List
* Your file extension may not be a know video file extension or it may not be listed in the extension list. In that you can add your file extensions in Settings 》 Lists 》File extensions.
* If a file with the name .nomedia presents in a folder or in any of it's parent folders. Disable the option " Recognise nomedia " from Settings 》 Lists
* If you have excluded the path or any of it's parent path in video folders settings. Just go to the Settings 》Lists 》 Video folders. It may happen when you long press on folder & select hide accidentally. If the path of your file or any parent folder is listed in the video folders list in a strike through text, then select it and click show button.
Eg:
consider your file is in "/sdcard/x/y/" folder. If the same folder or any parent folder (like "/sdcard/" or "/sdcard/x/") is set as hidden in video folders or it contains a file with the name ".nomedia", then it will not be showed.
Sent from my SM-G900H using Tapatalk
Click to expand...
Click to collapse
BINGO!!!!!
I unchecked the "Recognise nomedia " option and BAM! my videos showed up in the list.....Thanks alot guys
yeap...uncheck "Recognise nomedia "...
all my videos came out
I'm having the same problem, but the solution listed isn't helping. I have a fire kids edition for my son. I downloaded MX player. I downloaded a video to my SD card. I cannot get MX player to find the video. I tried downloading a different video as well. I don't understand what I'm doing wrong.
Help I checks everything and I even rest my phone and its still not working
Aravind sp said:
Help I checks everything and I even rest my phone and its still not working
Click to expand...
Click to collapse
hi,
In most of the cases, it should back if you disable "Recognise .nomedia" in Settings » List. If the list return after disabling it, some other app has generated a .nomedia file. If such files exists, no app will scan that directory & sub directory for media file.
If it doesn't works,
Just press on refresh button the top. Once it completes, immediately goto menu » help » bug report. Save the logs & upload here.
if i have more folders usb stick,when i play videos,play only 1 folder individual,not show all videos like 1-500 ,why ?
Hello,
I have a few questions, I hope some one can answer them.
I would like to know if it is possible to set a video folder that is on a network or a web site. I have all my DVDs copied onto my server and would like to access them from my devices.
When I try to add a folder, via settings, it will not show me a network. If I go to Network stream I have to type in the complete url to the file its self for it to play.
Example: 13.125.44.133:4040/movies/61/video_ts/vts_01_1.vob
I would like to be able to see the directory with the list of folders that the movies are in and then select the folder and have the app play the movie.
Example:
Movies/
61
2012
After Earth
....
Maybe the only way to access to this folders its using a file explorer with the capabilities of accessing to network folders.
I was able to locate the file, like you suggested. I am using ES File Explore, it allowed me to save the path and also associate the vob files with MX Player. So now I have one more question. When I ripped my DVD's, they are just like on the DVD. There is 4 or 5 vob files numbered 1, 2, 3... When I select the first vob file and it plays to the end it goes back to the ES File Explore app and does not continue on to the second vob file. Is there a switch so that it will do this or will it just not do this?
MX Player currently has no built-in SMB share support. External apps like ES File Explorer only pass 1 file URI at a time to MX.
This has been previously requested before. https://groups.google.com/forum/#!topic/mx-videoplayer/nYpihpAVJq0/discussion
It's already on the feature requests list. http://forum.xda-developers.com/apps/mx-player/sticky-running-list-feature-requests-t2718297
i see that there is a "back to list" i uncheck this and it went to the next file, seam to work.
Interesting, I didn't think that they would have changed so quickly to passing all the URIs in the folder. Well, good to see that you found a solution.
Related: http://forum.xda-developers.com/apps/mx-player/bug-report-video-button-lan-mounted-t2967882
An amendment to what I said above; MX still doesn't receive all the URIs, but rather does predictive requests based on filename, as a quickfix to this issue.
I use ES file explorer to do this, you can 'save' the location as a shortcut to the desktop of your device (long press on the folder, select save to desktop)
There are currently a few bugs with this in the latest version which i have my own thread about, subtitles dont load and some videos require software playback to prevent audio going out of sync but it works and works well in general.
Anyone using this feature could tell me how it works when there are 2 files - video and subtitles?
ch3mn3y said:
Anyone using this feature could tell me how it works when there are 2 files - video and subtitles?
Click to expand...
Click to collapse
If the directory listing is enabled on the host, MX Player can get the list of files. So, it will automatically load the subtitle as we. Else, MX Player will try to get the subtitle by assumption (by just replacing video extension with subtitle extensions). But, it doesn't work everywhere.
So, it's better to enable directory listing if you are using a local server.
I liked how Google Play Music let me listen to a file I select in the file manager directly in a small dialog window when I click in an audio file, no media library involved. Now Youtube Music (its replacement) does it too, but I hate that bloated app.
Other music apps I've tried fail miserably to play a file I select in the file manager. They take me to the full app (no dialog) and only play files that are in the system media storage; if the file I just selected is in a .nomedia folder, no dice.
Is there any lightweight app that replaces the simple Google Play Music dialog? Preferably open source?