Open nvish-umeshsharma opened 5 years ago
@nvish-umeshsharma Same as Gallery
GET_IMAGE_FROM_CAMERA -> if (resultCode == Activity.RESULT_OK) { if (photoFile != null) { val picUri = Uri.fromFile(photoFile)
startCropActivity(picUri) } }
private fun startCropActivity(uri: Uri?) { val bundle = Bundle() bundle.putString("URI123", uri.toString()) FragmentUtils.addFragment(CropFragment.create(bundle), activity!!.supportFragmentManager) }
Hope this helps you.
@nvish-umeshsharma Same as Gallery
GET_IMAGE_FROM_CAMERA -> if (resultCode == Activity.RESULT_OK) { if (photoFile != null) { val picUri = Uri.fromFile(photoFile)
private fun startCropActivity(uri: Uri?) { val bundle = Bundle() bundle.putString("URI123", uri.toString())
FragmentUtils.addFragment(CropFragment.create(bundle), activity!!.supportFragmentManager) }
Hope this helps you.