private void listarCobranzas() { getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); // Cursor cursor = dbHelper_Comprob_Cobro.listarComprobantesToCobrosMante("" + idEstablec); Log.d("VENTACOMPRO", "" + idEstablec); Cursor cr = dbAdapter_impresion_cobros.listarImprimirCobros(getDatePhone(), idEstablec); CursorAdapter_Man_Cbrz cAdapter_Cbrz_Man = new CursorAdapter_Man_Cbrz(this, cr); final ListView listCbrz = (ListView) findViewById(R.id.VVCO_cbrz); listCbrz.setAdapter(cAdapter_Cbrz_Man); listCbrz.setOnItemClickListener( new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Cursor cursor = (Cursor) parent.getItemAtPosition(position); int tipo = cursor.getInt( cursor.getColumnIndexOrThrow(DbAdapter_Impresion_Cobros.Imprimir_tipo)); String _id = cursor.getString( cursor.getColumnIndexOrThrow(DbAdapter_Impresion_Cobros.Imprimir_id_detalle)); String monto = cursor.getString( cursor.getColumnIndexOrThrow(DbAdapter_Impresion_Cobros.Imprimir_monto)); if (tipo == Constants.COBRO_NORMAL) { // normal // int idCompo = dbHelper_Comprob_Cobro.fetchComprobCobrosById(_id); dialogItemCobros(tipo, _id + "", monto); } else { // manual dialogItemCobros(tipo, _id, monto); } } }); }