Dissplay result sqlite query in textview
Dissplay result sqlite query in textview I tried to calculate a report and displays the result in the texview "edt1". But it's not displayed. there is mydatabasehelper : public void calculrapport(Argent a) { db = this.getWritableDatabase(); String query = "select sum(Entree) from Argent where date between "datedebut" and "datefin" ;"; Cursor cursor = db.rawQuery(query , null) ; int count = cursor.getCount(); } There is my class Rapport.java : public void onOKClick ( View v ) { if (v.getId() == R.id.okrapport) { EditText datedebut = (EditText) findViewById(R.id.datedebut); EditText datefin = (EditText) findViewById(R.id.datefin); String strdatedebut = datedebut.getText().toString(); String strdatefin = datefin.getText().toString(); Argent a = new Argent(); helper.calculrapport(a); edt1.setText( ); } } Thanks in advance. 1 Answe...