媒体播放器调试消息?

时间:2013-05-21 11:16:10

标签: android android-mediaplayer

我正在使用以下代码在我的应用中播放* .mp3文件,

MediaPlayer mMediaPlayer = new MediaPlayer();
int resID=getResources().getIdentifier(cts, "raw", getPackageName());
mMediaPlayer = MediaPlayer.create(this, resID);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mMediaPlayer.setLooping(false);
mMediaPlayer.start();

代码工作正常..但是有很多调试消息在Logcat中重复打印。我打算很快发布这个应用程序..我只是想知道上面的代码是对还是错。

任何指针?

更新: 这是打印的消息,

05-21 16:32:41.235: V/MediaPlayer-JNI(6000): release
05-21 16:32:41.235: V/MediaPlayer(6000): setListener
05-21 16:32:41.235: V/MediaPlayer(6000): disconnect
05-21 16:32:41.250: V/MediaPlayer(6000): destructor
05-21 16:32:41.250: V/MediaPlayer(6000): disconnect
05-21 16:32:41.250: W/CursorWrapperInner(6000): Cursor finalized without prior close()
05-21 16:32:41.790: V/MediaPlayer(6000): message received msg=2, ext1=0, ext2=0
05-21 16:32:41.790: V/MediaPlayer(6000): playback complete
05-21 16:32:41.790: V/MediaPlayer(6000): callback application
05-21 16:32:41.790: V/MediaPlayer(6000): back from callback

0 个答案:

没有答案