@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_archieve_history);
    openDB();
    Cursor cursor = myDb.getAllRows3();

    TextView txtSetsSpecified = (TextView) findViewById(R.id.tvArchieveHistory);
    txtSetsSpecified.setText(displayRecordSetz(cursor));
  }
 private void closeDB() {
   myDb.close();
 }
 private void openDB() {
   myDb = new DBAdapter(this);
   myDb.open();
 }
Example #4
0
 private void populateWorkoutList() {
   myWorkouts.add(new Workouts("+", 0, 0, 0));
   Cursor cursor = myDb.getAllRows();
   displayRecordSet(cursor);
 }