开发者

Insert data from spinner into database

HI. I have for instance the following code.

private EditText etAddSomething;
private EditText etAddSomething2;
private Spinner etAddSomethin3;

private String str_something;
private String str_something2;
private String str_something3;




str_descricao = etAddDescricao.getText().toString();
                            str_pais = etAddPais.getText().toString();
                            str_cidade = etAddCidade.getText().toString();
开发者_StackOverflow中文版

How can i insert data from spinner in the database? Using something like

str_descricao = etAddDescricao.getText().toString();


str_spinner = spinner.getSelectedItem().toString();


    Cursor cr = sqldb.rawQuery("select Name from employee",null);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜