Android :: Getting Current Playing Song Details From Media Player
Sep 1, 2010Is there any way to get the details of current song played by media player?
View 3 RepliesIs there any way to get the details of current song played by media player?
View 3 RepliesIs there any way to get the details of media files that is executed in android(default) media player?
View 3 Replies View RelatedInvoked device native player to play audio file, it opens android native player on top of the application but when selecting to back out or return to the application, device automatically stops playing the current media.
Sample code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"audio/*");
startActivity(intent);
How can I implement so that Device should continue to play audio in the background when selecting to back out or return to the application
I have a samsung tablet, recently music player has started to not play my music library properly. When i start to listen to a song, it plays it for a few sec then skips to the other one, and so on. Also a few other apps have stopped working. I did a virus scan and all seems ok.
View 4 Replies View RelatedTrying to get one mediaplayer button to cycle through a few mp3 files. Here is what I have so far:
First declared my array:
final int[] songs = {R.raw.ef101a, R.raw.ef101b, R.raw.ef101c, R.raw.ef101d, R.raw.ef101e};
Then called Media Player:
public void onClick(View arg0) { MediaPlayer mp = MediaPlayer.create(efaustusa.this, songs);
mp.start();
I cannot call the array through this media player call. How to do this?
Anybody else run in to this! Your at the gym listening to some Crue, Iron Maiden or some Hagar and all of a sudden the next song comes on and it's a f'ing ring tone, WTF is that doing playing! They all play, the ones I made and the ones I got from Mabilio ringtones! Anybody know how to fix this, it's just stupid!
View 9 Replies View RelatedI was wondering if anyone has had luck playing .mp3 files that are around 100-200+ meg in size? I'm working through the "Best Player" thread trying to find something that will. So far the only one to come close is Ringdroid, of all things, but try as it did it would not load the file (all other apps I've tried so far just say it's an unsupported file).
Ps the file I'm trying plays fine in Audacity on my Linux box. An iPod will play these files but you cannot fast forward through the song at all.
The tracks in an album playing alphabetically instead of by the track number?
View 3 Replies View RelatedIs it possible to retrieve the current State of a Media Player?
View 23 Replies View RelatedI'm trying to play a playlist I get using the MediaStore provider. However, when I try playing a playlist nothing happens. Can a MediaPlayer play a playlist (m3u file) and do I need to set the first track to play? This is my test code in the onCreate() method:
Uri uri = MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI;
if(uri == null) { Log.e("Uri = null");
} String[] projection = new String[] { MediaStore.Audio.Playlists._ID,
MediaStore.Audio.Playlists.NAME, MediaStore.Audio.Playlists.DATA };
Cursor c = managedQuery(uri, projection, null, null, null);
if(c == null) { Toast.makeText(getApplicationContext(),
R.string.alarm_tone_picker_error, Toast.LENGTH_LONG).show();
return; } if(!c.moveToFirst()) { c.close();
Toast.makeText(getApplicationContext(), R.string.alarm_tone_picker_no_music,
Toast.LENGTH_LONG).show(); return; } c.moveToFirst(); try {
MediaPlayer player = new MediaPlayer(); player.setDataSource(c.getString(2));
player.start(); } catch(Exception e) { e.printStackTrace(); }
I have turned on every volume stream.
How does the media player put itself in the "Ongoing" group when playing?
View 3 Replies View RelatedI would like to find an media player that plays videos but when I minimize or multitask to another app I want the videos audio to keep playing like pandora does. The reason for this is bcuz I rip videos off of youtube to mainly listen to the music.
View 2 Replies View RelatedI have some pretty simple Soundboard applications on the Android Market that work flawless on an LG Ally, the Motorola Droid, and the Nexus One, but I recently received an e-mail from a user with the Motorola DroidX claiming that most of the sounds do not work. I've exchanged a few e-mails with him. He claims the Soundboard is the only application running, and he's double checked to make sure that the Media Volume wasn't set to minimum. I really don't have access to one either to play around with. The application isn't doing anything cosmic to play the sounds. Below is a code snippet. Any insights into what might be causing the hang up are greatly appreciated.
public void play(Sample sample) {
Log.v(TAG, "Playing: " + getString(sample.getButtonTextResId()) + " (" + sample.getSoundResId() + ")");
if (mPlayer != null) { mPlayer.stop(); mPlayer.release();
} MediaPlayer player = MediaPlayer.create(this, sample.getSoundResId());
mPlayer = player; if (player != null) { player.setVolume(1.0f, 1.0f);
player.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
@Override public void onCompletion(MediaPlayer mp) { mp.release();
mPlayer = null; } } ); player.start(); } }
I have an application where i play music from media player continuously. I am rotating an ImageView object with RotationAnimation simultaneously while background music is playing. Before music starts playing,the rotation is fine,,but when mediaplayer starts playing music rotation disrupts,and slows down.
View 3 Replies View RelatedI launch the Media Player to play a mp3 file the usual way:
CODE:...........
Leaving the Media Player using the Back button stops the playback. How can I ensure that the Media Player continues playing.
I am also getting the same error while playing the media file
E/MemoryHeapBase(31): mmap(fd=20, size=233472) failed (Invalid argument) E/VideoMIO( 31): Error creating frame buffer heap.
In my android game I want to have a rhythm Mediaplayer object and a lead Mediaplayer object playing in sync. However at the moment the rhythm is a slight bit behind the playback of the lead Mediaplayer object. Is there a way I can make it so that both are started at the same time, for instance using Runnables etc?!It's quite crucial that they play in sync with each other as you can imagine!
View 1 Replies View RelatedThis feature was pretty swell on the blackberry storm. Just curious if this feature is available on the Motorboatin son of a Droid X.
View 6 Replies View RelatedI just started with creating my own media player application by looking at the code samples given in Android SDK. While I am trying to play a local media file (m.3gp), I am getting IOException error :: error(1,-4).
package com.mediaPlayer;
import java.io.IOException;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;...........
I am using mp3 sound in my game (used wav format also) while playing sound I get problem as "obtainBuffer timeout (is the CPU pegged)" and then sound gets played after some time i.e it is not synchronized with the game play.
View 10 Replies View RelatedI love my Evo, however the music app will play EVERY song it finds, including my ringtones and YouMail messages. Can I make it just play the songs in my songs folder (and sub-folders) on my SD Card? I only want it to search my songs folder, not the whole phone or the whole SD Card.
View 8 Replies View RelatedIs there anyway to stop the stock music player on my HTC Hero from playing songs? I have a bluetooth headset and whenever I use the controls on the headset it activates the stock music player instead of the one I downloaded.
View 2 Replies View Relatedwhen I'm listening to audio with my headphones through cherry rplayer and then take the headphones out to use the speaker, I don't get any sound...I have to shut down any audio players functions before I get any sound out of the speaker. Not sure if cherry rplayer is the culprit or not. I have also noticed that my media player starts playing by itself...
View 8 Replies View RelatedI am new to using Android. I am wondering if there is any video (MP4) player that would continue playing the video even when I use the home button to switch to other apps (e.g. check my email etc.) I have a few documentaries/discussions to watch and sometimes minimize the video player to check other information on my phone and the video stops.
Any Video players that continue playing when minimized. I know that the Meridian Player continues playing when the screen is switched off, but it stops if you press the home button.
(I use a Galaxy Nexus with Jelly Bean.)
I don't care about about the scanner apps. I would just like an app that gives me some info about the wifi network that I am currently connected to. Is there such an app?
View 3 Replies View RelatedI am new in android weatherbug technologies. Please can you tell me how to interact with weatherbug from android using weatherbug API. I need to get the current weather condition from weatherbug and display it on android screen.
View 2 Replies View RelatedI can capture an audio stream from the mic, but can I capture the currently playing audio stream?
View 2 Replies View RelatedI know that my girlfriend needs and wants a tablet(a simple one) , so I ordered a serioux visiontab s800 which will be shipped today.
I want to setup an app or if possible in another way, to play a certain song when booting the tablet. Or even after it has booted. I just want it to start playing a song all of a sudden If this is possible , I might want to start working on it asap, since I will give the gift on Thursday.
I've had Handcent sms app for a long time and never had any problems, I love it. But with the newest update it has begun playing a long annoying song when I get an sms, even though I've set it to a normal single sound. I've tried reinstalling it, but it doesn't help. Can anyone help me? Or recommend another sms program, just as good.
View 1 Replies View RelatedSuppose I want to start a song in Activity A see to it that it plays in Activity B when I move from Activity A to B Now after moving from Activity B to Activity C I want to stop that song and play another song.Please I need Help on this cant figure it out some how
View 2 Replies View Related