This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Camera Issues *Fixed : Working code for camera + picture inside*  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

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 :

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!