Skip to content Skip to sidebar Skip to footer

Null Pointer Exceptions When Capture Image

My app has null pointer exceptions when it tries to take a picture with the camera. On clicked button method public void onClick(View v) { if (v.getId() == R.id.capture_btn) {

Solution 1:

The most likely reason is because there is no ImageView in the current Activity with id R.id.imageViewMemberRegistration. If you need help troubleshooting your layout, please post the XML file for your activity. credit goes to Code-Apprentice


Post a Comment for "Null Pointer Exceptions When Capture Image"