Camera Issues *Fixed : Working code for camera + picture inside*
posted 10 months ago
I've been recently getting in to android and added a camera to my application, now it did work and took the photo (automatically saved to gallery as default location). I've since tinkered with it a lot and now I can't seem to get it working!
Could anyone have a look at my code and see what went wrong? I get a null pointer exception when it runs. I'm trying to take a photo and get it to save to gallery when the button is pressed. Once the photo is taken I wanted a preview of it to show up on screen.
*EDIT* I had the wrong layout, I retyped everything out and realized my mistake I had it set twice to two diff xml files!
Working code :