public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
    
     final CoverFlow coverFlow;
     coverFlow = new CoverFlow(this);
     
     coverFlow.setAdapter(new ImageAdapter(this));
    ImageAdapter coverImageAdapter =  new ImageAdapter(this);
     
     coverImageAdapter.createReflectedImages();
     
     coverFlow.setAdapter(coverImageAdapter);
     
     coverFlow.setSpacing(-15);
     coverFlow.setSelection(3, true);
     
     
     setContentView(coverFlow);
 

 }


위의 소스 처럼 되어있는 것을  화면에 추가할것이 더있어 xml롤 작업하기 위하여
밑의 소스 처럼 바꾸었는데 Exception이 발생하네요 왜그런지 모르겠습니다
아시면 답변좀 부탁드릴께요

=============================================================

 

 public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     
     setContentView(R.layout.main);

     final CoverFlow coverFlow = (CoverFlow)this.findViewById(R.id.coverflow);
     coverFlow.setAdapter(new ImageAdapter(this)); 
     ImageAdapter coverImageAdapter =  new ImageAdapter(this);
     
     coverImageAdapter.createReflectedImages();
     
     coverFlow.setAdapter(coverImageAdapter);
     
     coverFlow.setSpacing(-15);
     coverFlow.setSelection(3, true);

 }

====xml===
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

  <com.media4th.coverflow
      android:id="@+id/coverflow"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
  />

</LinearLayout>

 eee.PNG