Where should I call getSurfaceHolder()?
Please give me an example with the xml.
I have something like this:
===========================================
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<SurfaceView android:id="@+id/surfaceView1"
android:layout_height="match_parent"
android:layout_width="match_parent"></SurfaceView>
<Button android:id="@+id/takephoto"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_width="match_parent" android:text="@string/takephoto"></
Button>
</RelativeLayout>
==========================================
Thank you so much!!
On 9 ago, 13:14, Mark Murphy <mmur...@commonsware.com> wrote:
> On Tue, Aug 9, 2011 at 3:00 AM,DavidSanchezde la Torre
>
> <dsanchezdelato...@gmail.com> wrote:
> > Ok, I tried that but then I didn't know how to get the surfaceholder
> > where to start the preview of my camera because I'm extending from
> > surfaceview.
>
> Call getSurfaceHolder() on your SurfaceView.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment