I'mhavingtroubleaddingadialoginthislistViewmethod,isthereanotherwaytomakeitwork?
listDebitosPendentes.setOnItemClickListener(newAdapterView.OnItemClickListener(){dialog=ProgressDialog.show(DetalhesDebitosActivity.this,"Aguarde","Enviando Boleto....",true);
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent= new Intent(getApplicationContext(),DetalhesDebitosActivity.class);
//Passa para a activity o id no banco de dados
intent.putExtra("ID",id);
startActivity(intent);
}
});