NameValuePair deprecated for openConnection

前端 未结 7 1187
梦谈多话
梦谈多话 2020-12-01 06:09

I been following online tutorials on how to insert data into a database from an android app and have everything working except this small part

List

        
相关标签:
7条回答
  • 2020-12-01 07:00

    You can use ContentValues, for example:

    ContentValues values = new ContentValues();
    values.put("username", name);
    values.put("password", password);
    database.insert(Table_name, null, values);
    
    0 讨论(0)
提交回复
热议问题