title: android surfaceview can't work
body: <p>it's a easy question, but I can't figure it out:</p>
  
  <p>this is my xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout
      xmlns:android = "http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
  &gt;
  
  &lt;GG.My_pic.testA
          android:id = "@+id/myview"
          android:layout_width = "fill_parent"
          android:layout_height = "fill_parent"
      /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>In lunar lander, the main thread uses</p>
  
  <pre><code>    // tell system to use the layout defined in our XML file
      setContentView(R.layout.lunar_layout);
  </code></pre>
  
  <p>But I can't use my </p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  }
  </code></pre>
  
  <p>If I change my R.layout.main to --> new testA(this) , it works</p>
  
  <p>(testA is the class that extends SurfaceView implements SurfaceHolder.Callback)</p>
  
  <p>why??</p>