java.lang.StringIndexOutOfBoundsException while playing video in videoView : Android v 4.2.1

后端 未结 2 1473
长发绾君心
长发绾君心 2020-12-18 20:18

I am getting this crash when I play video on videoView in Android version 4.2.1. I found this out specifically on Micromax Canvas A210 device. It is not showing any message

2条回答
  •  佛祖请我去吃肉
    2020-12-18 20:52

    Are you a developer and using Video View in you application. If so try to debug and verify that you provide a valid uri/url to the Video View. Though there is a null check in the openVideo() of the android.widget.VideoView class, the uri may be empty string.

    Here is the source of the Video View class for the android version you mentioned.

提交回复
热议问题