Home » » java.lang.IllegalStateException in Android MediaPlayer

java.lang.IllegalStateException in Android MediaPlayer

Written By MR HARI on Selasa, 13 Maret 2012 | 12.36

In the previous exercises of playing video using MediaPlayer, setDataSource() throws java.lang.IllegalStateException sometimes. MAY BE because the mediaPlayer still in stopping, preparing, or doing something else on last loaded video. My solution is to release the last mediaPlayer and new another mediaPlay again. It seem work fine.
java.lang.IllegalStateException in MediaPlayer

Check it: Implement ActionBar for our Media Player App

Share this article :

0 komentar:

Posting Komentar

 
Support : Your Link | Your Link | Your Link
Copyright © 2013. Android Center - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger