@Override protected void onPreExecute() { super.onPreExecute(); try { db.open(); } catch (SQLException e) { e.printStackTrace(); } }