尝试连接数据库;我有一个问题context = null
(很可能是)。我不明白是什么问题
import java.util.HashMap;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
public class DatabaseTable extends Activity {
private Context context;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.database_table);
LBD conection = LBD.get(context); // (context = null) ???
Settings setting = new Settings(conection.getSQLiteDatabase());
setting.create();
}
}