I am trying to capture an image from the camera and display it on the imageView. I tried but getting the error "override method should call super.onActivityResult", you can see my code below. Please let me know if I am doing it right.

```
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    if (requestCode == TAKE_PICTURE && resultCode == Activity.RESULT_OK) {
        try{
            val file= File(currentPath)
            val uri = Uri.fromFile(file)

            val imageView = findViewById<ImageView>(R.id.imageView)
            imageView.setImageURI(uri)
        }catch(e:IOException){
            e.printStackTrace()
        }
    }
    if (requestCode == PICK_PICTURE && resultCode == Activity.RESULT_OK) {
        try{
            val uri = data!!.data

            val imageView = findViewById<ImageView>(R.id.imageView)
            imageView.setImageURI(uri)
        }catch(e:IOException){
            e.printStackTrace()
        }
    }
}

```