Getting Permission Denial Exception

后端 未结 6 2191
悲&欢浪女
悲&欢浪女 2020-11-27 16:42

I have an activity in my app that allows the user to select several files from the device one by one, I am using an intent like this:

Intent intent = new Int         


        
6条回答
  •  佛祖请我去吃肉
    2020-11-27 17:07

    In kotlin solve by placing the operator "?" = (nullable) after Intent

    as the following code:

    override func onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { 
        super.onActivityResult(requestCode, resultCode, data)
    }
    

提交回复
热议问题