Entering data manually into a table (Android)

0

My project has a TextView that should already start displaying a value to the user, it only has to change it. But, this value is not being displayed. I believe he is not being recorded. How do I insert this initial value into the table?

This is the code I'm using and it does not work:

public void onCreate(SQLiteDatabase bd) {
    bd.execSQL("create table dados(_id integer primary key autoincrement, data text not null);");
    String sql = "INSERT INTO dados (data) values('DD/MM/AAAA')";
    bd.execSQL(sql);
}
    
asked by anonymous 25.04.2015 / 05:34

0 answers