• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic