Anyone have any instie on this please? If not, maybe I will try the developers group. Thanks.
_____ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of tinyang Sent: Saturday, August 22, 2009 4:07 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Placement of camera preview Hello. I just got my camera preview working for my app, but it is not appearing where I want it to appear, and I'm not sure how to get it there. Instead of using the entire screen for the preview, I would like to put it inside a surfaceview in an activity xml gui. What do I need to change? Here is my code: public class TakePic extends Activity { SurfaceView camSurface; Preview camPreview; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE);//hide window title camPreview = new Preview(this); //create preview setContentView(R.layout.takepic); setContentView(camPreview); //set preview as activity content camSurface = (SurfaceView) findViewById(R.id.camsurface); } -- :-) P Please don't print this e-mail unless you really need to. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/21/2009 6:06 PM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---