Android Built-in Camera Interface won't return image and crashes on cancel?

This is the intent to call the camera interface.

This is the intent to call the camera interface. Intent intentCamera = new Intent(MediaStore. ACTION_IMAGE_CAPTURE); startActivityForResult(intentCamera, CALL_CAMERA); `protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent){ if(requestCode == CALL_CAMERA && resultCode == RESULT_OK) { if(imageReturnedIntent.getAction()!

= null) { // display image received on the view Bundle newBundle = imageReturnedIntent.getExtras(); newBitmap = (Bitmap) newBundle. Get("data"); if(newBitmap! = null) { ImageView imageViewProfilePicture = (ImageView) this.

FindViewById(R.id. ImageViewProfilePicture); imageViewProfilePicture. SetImageBitmap(newBitmap); imageViewProfilePicture.invalidate(); } } }}`.

Thanks! Permission to use this:) – Lope Emano Jan 27 at 6:27 No problem! Thank you.

– exception Jan 27 at 6:28.

Solved! The startActivityForResult() sub needs to be within the class. I placed mine inside my onclick which was inside my onCreate sub.

Thanks guys:D.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions