I'm having difficulty calling a method from my webservice, this method I send the e-ticket to the user for some reason is not working. I have a listview with all the tickets and the user selects which of them he wants to see the details and in this activity of details I have 3 functions that is to send the ticket by email, send a digible line of the ticket by sms or just to show the line.
This is the onClick method I have in detail activity. something's missing? because neither the logs they show me.
@Override
public void onClick(View v) {
switch (v.getId()){
case R.id.enviaBoletoEmail:
Log.d("","ENVIANDO BOLETO test 1");
new Thread(new Runnable() {
@Override
public void run() {
WebService ws = new WebService();
Log.d("","ENVIANDO BOLETO teste 2");
try {
pessoaDao = new PessoaDao(databaseHelper.getConnectionSource());
Pessoa pessoa=new Pessoa();
pessoa= pessoaDao.queryForId(1);
try {
ws.enviarBoletoPDF(sequencia, pessoa.getEmail());
Log.d("","ENVIANDO BOLETO test 3");
} catch (IOException e) {
e.printStackTrace();
} catch (XmlPullParserException e) {
e.printStackTrace();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}).start();
break;