////////////////////////////////main.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.paad.compass.CompassView
 android:id="@+id/compassView" 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    />
<SeekBar
 android:id="@+id/seekBar"
 android:scaleType="fitCenter"
 android:layout_height="wrap_content"
 android:layout_width="fill_parent"
 android:layout_below="@id/seekBar"
 
 />   
</LinearLayout>
/////////////////////////////////////////////////////////////////////////////
지금 보시면 CompassView를 만들어서 emulator에 compass가 나옵니다.
여기에 SeekBar를 추가하려고 합니다.
1번째 방법
public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     CompassView cv = new CompassView(this);
     setContentView(cv);
     cv.setBearing(90);
 } 
이렇게 하면 compass가 잘 나오게 됩니다.
2번째 방법
public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.main);
     CompassView cv = (CompassView)this.findViewById(R.id.compassView);
     cv.setBearing(45);
}   
이렇게 하면
the application compassview(process com.paad.compass) has stopped unexpectly. please try again
에러가 발생합니다.
2번째 방법이 되야지 seekbar(기존에 만들어진것)을 사용할 수 있을 것 같아서요.
좀 알려주세요 ...