• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris

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

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 :

Men call me Jim. Women look past me to this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
    Bookmark Topic Watch Topic
  • New Topic