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.
Check it: Implement ActionBar for our Media Player App
Tuesday 13 March 2012
java.lang.IllegalStateException in Android MediaPlayer
Borneo08
12:36
About Borneo08
Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.