Top "Android-mediaplayer" questions

MediaPlayer class can be used to control playback of audio/video files and streams in Android devices

Play sound on button click android

How do I get a button to play a sound from raw when click? I just created a button with …

android audio click android-mediaplayer playback
Streaming Audio from A URL in Android using MediaPlayer?

I've been trying to stream mp3's over http using Android's built in MediaPlayer class. The documentation would suggest to …

android mp3 android-mediaplayer audio-streaming
Is it possible to play music during calls so that the partner can hear it ? Android

I'm trying to make and app like Call Cheater(Originally developed for Symbian OS) Is it possible to play a …

android android-mediaplayer phone-call
Media Player called in state 0, error (-38,0)

I am currently trying to design a simple app that streams an internet radio station. I have the URL for …

android android-mediaplayer
Simple mediaplayer play mp3 from file path?

I have a very simple mediaplayer that play background. It calls file from the apk, but I want it to …

android android-mediaplayer android-sdcard android-file
SeekBar and media player in android

I have a simple player and recorder. Everything works great but have a one problem. I want to add seek …

android android-mediaplayer android-seekbar
Play audio file from the assets directory

I have the following code: AssetFileDescriptor afd = getAssets().openFd("AudioFile.mp3"); player = new MediaPlayer(); player.setDataSource(afd.getFileDescriptor()); player.prepare(); …

android audio android-mediaplayer assets android-assets
Should have subtitle controller already set Mediaplayer error Android

Whenever I play a media, it shows a warning in DDMS Should have subtitle controller already set MY CODE: private …

android android-mediaplayer
Android - play sound on button click - Null pointer exception

I am trying to play a sound file on the click of a button. The sound is just 1 sec long. …

android android-mediaplayer
MediaPlayer : Should have subtitle controller already set: KitKat

I am having an odd issue where my audio file sometimes plays and sometimes does not play. The catch is …

android android-mediaplayer android-4.4-kitkat