@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); bMathBtn = (Button) findViewById(R.id.bMathBtn); rusBtn = (Button) findViewById(R.id.RusBtn); bMathBtn.setOnClickListener(this); rusBtn.setOnClickListener(this); sqlHelper = new DBhelper(getApplicationContext()); sqlHelper.create_db(); }
// ---------------------------------------------------------------// public Connection select() { return DBhelper.getConnection(); }