Hi
am using the following code to get the preview for my camera , but my
app getting force closed, dont know y, can anyone help me on this.
setContentView(R.layout.camera);
final Preview preview = new
Preview(getApplicationContext());
FrameLayout layout = (FrameLayout)
findViewById(R.id.preview);
try{
if(layout!=null && preview!=null){
layout.addView(preview); /* Here where my app
getting force closed */
}else{
showToast("its null");
}
}catch(Exception e){
showToast(e.getMessage());
}
Thanks and Regards
Raju .G
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en