def take_picture(self):
        intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
        self.last_fn = self.get_filename()
        self.uri = Uri.parse('file://' + self.last_fn)
        self.uri = cast('android.os.Parcelable', self.uri)
        intent.putExtra(MediaStore.EXTRA_OUTPUT, self.uri)
        PythonActivity.mActivity.startActivityForResult(intent, 0x123)
dataset/ETHPy150Open kivy/kivy/examples/android/takepicture/main.py/TakePictureApp.take_picture/original