[android-developers] Camera Preview onto SurfaceView using xml

2008-07-07 Thread Bobalot
ugh, it seems that the 1st post i made never actually appeared, so what i am trying to do is make a simple camera application, one with a surfaceview and a button which are defined in the layout xml, to preview the camera and then take an image, but every time i try to map the preview onto

[android-developers] Camera Preview onto SurfaceView using xml

2008-07-07 Thread Bobalot
hi, im trying to make a simple camera app, by extending the CameraPreview class in the api demos, anyway im trying to cast the preview onto a surfaceview that i have defined in my layout xml file. but everytime i do this i get a null pointer exception, and i cant for the life of me figure out how