problem in play MP3 sound

All your problems with Audio, Video and Images.

problem in play MP3 sound

Postby Ravindra Kumar » Fri Sep 18, 2009 8:40 am

Hi
everyone I am new in Android .I am trying play MP3 sound, it will generate IllegalStateException.

code is

ply = MediaPlayer.create(this, R.raw.dillutiya);
ply.prepare();
ply.start();

please help me with meaning full Answer
Hi every one I am Ravindra Kumar Software developer in handygo technologies.
Ravindra Kumar
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Sep 09, 2009 12:16 pm
Location: new delhi

Top

Postby ANDR_eas » Fri Oct 02, 2009 8:52 pm

You don't need to call prepare().
MediaPlayer.create() already did it for you ;)

Can i have a more exact description of the exception? (if it still doesn't work)
ANDR_eas
Freshman
Freshman
 
Posts: 3
Joined: Thu May 14, 2009 9:32 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 21 guests