Fetch image form Camera to ImageView || Camera Intent
Want to fetch a image from camera and set it to the image view using intent in fragment First add permission in your manifest file <uses-permission android:name=”android.permission.CAMERA”/> then setOnClickListener for your image view imageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { int permissionCheck = ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.CAMERA); if (permissionCheck == … Read more