Process: com.example.espl.nivedhfieldworker, PID: 31238
android.os.FileUriExposedException: file:///storage/emulated/0/.NivedhFieldWorker/1569647128471.jpg exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1993)
at android.net.Uri.checkFileUriExposed(Uri.java:2379)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:963)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10227)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10212)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1736)
at android.app.Activity.startActivityForResult(Activity.java:4590)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:676)
at androidx.core.app.ActivityCompat.startActivityForResult(ActivityCompat.java:234)
at androidx.fragment.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:796)
at androidx.fragment.app.FragmentActivity$HostCallbacks.onStartActivityFromFragment(FragmentActivity.java:933)
at androidx.fragment.app.Fragment.startActivityForResult(Fragment.java:1197)
at androidx.fragment.app.Fragment.startActivityForResult(Fragment.java:1185)
at com.example.espl.nivedhfieldworker.photo_capture.PhotoCaptureFragment.openBackCamera(PhotoCaptureFragment.kt:587)
at com.example.espl.nivedhfieldworker.photo_capture.PhotoCaptureFragment.access$openBackCamera(PhotoCaptureFragment.kt:61)
at com.example.espl.nivedhfieldworker.photo_capture.PhotoCaptureFragment$onCreateView$1.onClick(PhotoCaptureFragment.kt:142)
at android.view.View.performClick(View.java:6600)
at android.view.View.performClickInternal(View.java:6577)
at android.view.View.access$3100(View.java:781)
at android.view.View$PerformClick.run(View.java:25912)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6912)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)
android.os.FileUriExposedException: file:///storage/emulated/0/.NivedhFieldWorker/1569647128471.jpg exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1993)
at android.net.Uri.checkFileUriExposed(Uri.java:2379)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:963)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10227)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10212)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1736)
at android.app.Activity.startActivityForResult(Activity.java:4590)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:676)
at androidx.core.app.ActivityCompat.startActivityForResult(ActivityCompat.java:234)
at androidx.fragment.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:796)
at androidx.fragment.app.FragmentActivity$HostCallbacks.onStartActivityFromFragment(FragmentActivity.java:933)
at androidx.fragment.app.Fragment.startActivityForResult(Fragment.java:1197)
at androidx.fragment.app.Fragment.startActivityForResult(Fragment.java:1185)
at com.example.espl.nivedhfieldworker.photo_capture.PhotoCaptureFragment.openBackCamera(PhotoCaptureFragment.kt:587)
at com.example.espl.nivedhfieldworker.photo_capture.PhotoCaptureFragment.access$openBackCamera(PhotoCaptureFragment.kt:61)
at com.example.espl.nivedhfieldworker.photo_capture.PhotoCaptureFragment$onCreateView$1.onClick(PhotoCaptureFragment.kt:142)
at android.view.View.performClick(View.java:6600)
at android.view.View.performClickInternal(View.java:6577)
at android.view.View.access$3100(View.java:781)
at android.view.View$PerformClick.run(View.java:25912)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6912)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)