Why does MediaPlayer.setLooping() cause an error when using VideoView?
问题 We are trying to use a VideoView to play a video in an Android Activiy. I've read the MediaPlayer documentation and studied its state diagram. We get a Media Player error if we call this method: MediaPlayer.setLooping() from this listener method: MediaPlayer.OnPreparedListener.onPrepared() The error message from LogCat: error (-38, 0) Note: We have tested on two physical devices and this only happens on our Motorola Xoom. If I comment out this line: mp.setLooping(false); everything works fine