SQLite

    Android Studio - SQLite3 데이터베이스 활용하기

    1. SQLiteOpenHelper SQLite 데이터베이스 생성 및 버전 관리를 도와주는 클래스 SQLiteOpenHelper 클래스를 상속 받아 SQLite를 편리하게 제어 할 수 있다. 2. SQLiteOpenHelper 상속 SQLiteOpenHelper 는 추상클래스이기 때문에 상속 받은 후, onCreate와 onUpgrade 메서드를 반드시 구현해야 한다. public class DatabaseHandler extends SQLiteOpenHelper { public DatabaseHandler(@Nullable Context context) { super(context, Util.DB_NAME, null, Util.DB_VERSION); } @Override public void onCre..