How to solve java.lang.SecurityException while trying to take a photo using camera in Kotlin?

前端 未结 0 1167
野性不改
野性不改 2021-01-03 23:51

I am trying to take a photo in kotlin with the following function:

@JavascriptInterface
fun generate() {
    val photoUri = Uri.fromFile(photo)
    val imageC         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题