취미로 성경읽기 어플을 만들어 볼까 하는데 처음부터 에러가 나네요

xml파일을 이용 성경 db는 절 만들어 지는데 성경 버튼을 누르면 액티비티 띠우며

창세기,출애굽기,.....

목록이 나와야 하는데

에러가 나네요

 

서핑해도 이유를 모르겠습니다.

 

고수님의 답변...ㅋㅋㅋ 부탁드립니다.

 

 

bible_book.xml

------------------------------------------------------------------------

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

 <TextView
  android:id="@+id/bookname"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"/>
    
</LinearLayout>

 

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

 

biblebook.java

----------------------------------------------

package com.yoos.bible;

import android.app.ListActivity;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.widget.SimpleCursorAdapter;

public class BibleBook extends ListActivity{
 
 protected SQLiteDatabase db;
 protected Cursor cursor;
// protected ListAdapter adapter;
 
 //protected Button btn_main_bible;
 public void onCreate(Bundle savedInstanceState) {
     
        super.onCreate(savedInstanceState);
        setContentView(R.layout.bible_book);
       
        db = (new DataBaseHelper(this)).getWritableDatabase();
              
  cursor = db.rawQuery("SELECT lbl_long from label_Bible",null);
  startManagingCursor(cursor);
  
  SimpleCursorAdapter adapter;
  adapter = null;

  //SimpleCursorAdapter에 작업하는 테이블에 반드시 _id필드가 있어야 한다
  adapter = new SimpleCursorAdapter(this,
           android.R.layout.simple_list_item_1,
           cursor,
           new String[] {"lbl_long"},
           new int[] {R.id.bookname});
  this.setListAdapter(adapter);
  
 }
}