Hey tinyang,

Could you please share the code you use for picture taking? I am
working on the same thing and having weird issues with it - it does
not take full sized pictures for unknown reason...

And yeah, sorry, no answer to your question from my side at the moment.

Pavlo



On Thu, Aug 27, 2009 at 9:14 PM, tinyang<gnay...@gmail.com> wrote:
>
> 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);
>
> }
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to