I'm trying to update a listview with user entries into two text inputs. Once the save button is clicked, the user's entry should appear. Based on my code, the listview updates the first time I fill out the two text inputs and I hit save, but the second time I hit save, the listview does not update. Here's my code:

Home.java

```
public class Home extends AppCompatActivity implements AdapterView.OnItemSelectedListener {

EditText inputOne;
EditText inputTwo;
MyDBHandler dbHandler; 
Button saveButton; 
MyCursorAdapter cursorAdapter;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_home);

    inputOne = (EditText) findViewById(R.id.inputOne);
    inputTwo = (EditText) findViewById(R.id.inputTwo);
    dbHandler = new MyDBHandler(this, null, null, 1);
    saveButton = (Button) findViewById(R.id.saveButton);

    MyDBHandler myDBHandler = new MyDBHandler(this);
    Cursor c = myDBHandler.getCursor();
    cursorAdapter = new MyCursorAdapter(this,c,1);
    ListView notes = (ListView) findViewById(R.id.notes);
    notes.setAdapter(cursorAdapter);

public void saveClicked(View view) {
    Test test = new Test( inputOne.getText().toString(), inputTwo.getText().toString() );
    dbHandler.addTest(test);
    inputOne.setText("");
    inputTwo.setText("");

    cursorAdapter.notifyDataSetChanged();

}

```

MyDBHandler.java

```
public class MyDBHandler extends SQLiteOpenHelper {

private static final int DATABASE_VERSION = 1;
private static final String DATABASE_NAME = "Database.db";
public static final String TABLE_TEST = "test";
public static final String COLUMN_ID = "_id";
public static final String COLUMN_ONE = "one";
public static final String COLUMN_TWO = "two";

public MyDBHandler(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, DATABASE_NAME, factory, DATABASE_VERSION);
}

public void onCreate(SQLiteDatabase db) {
    String query = "CREATE TABLE " + TABLE_TEST + "(" +
            COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
            COLUMN_ONE + " TEXT," +
            COLUMN_TWO + " TEXT" + ");";
    db.execSQL(query);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    db.execSQL("DROP TABLE IF EXISTS " + TABLE_TEST);
    onCreate(db);
}

public void addTest(Test test){
    ContentValues values = new ContentValues();
    values.put(COLUMN_ONE, test.get_one());
    values.put(COLUMN_TWO, test.get_two());
    SQLiteDatabase db = getWritableDatabase();
    db.insert(TABLE_TEST, null, values);
    db.close();
}

public Cursor getCursor(){
    SQLiteDatabase db = getWritableDatabase();
    String query = "SELECT * FROM " + TABLE_ACTIVITIES + " WHERE 1";

    Cursor c = db.rawQuery(query, null);

    return c;

}

```

}

MyCursorAdapter.java

```
public class MyCursorAdapter extends CursorAdapter {

public MyCursorAdapter(Context context, Cursor c, int flags) {
    super(context, c, 1);
}

@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
    return LayoutInflater.from(context).inflate(R.layout.custom_row, parent, false);
}

@Override
public void bindView(View view, Context context, Cursor cursor) {

    TextView one = (TextView) view.findViewById(R.id.one);
    TextView two = (TextView) view.findViewById(R.id.two);

    String one_string = cursor.getString(cursor.getColumnIndexOrThrow(MyDBHandler.COLUMN_ONE));
    one.setText(one_string);

    String two_string  = cursor.getString(cursor.getColumnIndexOrThrow(MyDBHandler.COLUMN_TWO));
    two.setText(two_string);

}

```

}

Test.java

```
public class Test {

private int _id;
private String _one;
private String _two;

public Test(){

}

public Test(int id){
    this._id = id;
}

public Test(String one, String two){
    this._one = one;
    this._two = two;
}

public int get_id() {
    return _id;
}

public void set_id(int _id) {
    this._id = _id;
}

public String get_one() {
    return _one;
}

public void set_one(String _one) {
    this._one = _one;
}

public String get_two() {
    return _two;
}

public void set_two(String _two) {
    this._two = _two;
}

```