Hello everyone I'm trying to implement a server firebird with webservice for android.
But I am encountering problems consult the android. If someone can help me thank you ...
But I am encountering problems consult the android. If someone can help me thank you ...
- package br.com.appwebservice;
- import android.util.Log;
- public class WebService
- {
- private static final int TIMEOUT_CONEXAO = 20000; // 20 segundos
- private static final int TIMEOUT_SOCKET = 30000; // 30 segundos
- private static final int TAM_MAX_BUFFER = 10240; // 10 Kbytes
- private String url;
- private Pessoa pessoa;
- public WebService(String url) {
- this.url = url;
- }
- public Pessoa getConsulta(){
- String parser = "";
- try {
- HttpParams httpParams = new BasicHttpParams();
- httpParams.setIntParameter("id", 1);
- // configura o timeout da conex