1

Android:Stream live audio and play

view story
linux-howto

http://stackoverflow.com – I am making an app in which i want to stream live audio and play in my application and i am unable to play.My code is as follows: play=(Button)findViewById(R.id.button1); pause=(Button)findViewById(R.id.button2); stop=(Button)findViewById(R.id.button3); mp3=new MediaPlayer(); try { mp3.setAudioStreamType(AudioManager.FLAG_PLAY_SOUND); mp3.setDataSource(url); mp3.prepareAsync(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } play.setOnClickListener(new OnClickL (HowTos)