Thank you, it worked! But now I have problems retrieving the informations...
–
Fcbrasov RomaniaOct 25 '12 at 7:32

in order to fix the new error your receiving change this line in the onCreate method. new httpRequest().execute(); to result = new httpRequest().execute().get; That should fix your errors let me know in another comment or new question. :)
–
kabuto178Oct 25 '12 at 15:47

Thnak you, it works! But this should be put in a try-catch, cause otherwise is giving an error. so the code is like this: try { result = new httprRequest().execute().get(); } catch (Exception e) {} int ct_id=0; String ct_name=""; //wait to have the data inside the variable while(result == null) { Toast.makeText(getBaseContext(), "Connecting...", Toast.LENGTH_LONG).show(); }
–
Fcbrasov RomaniaOct 26 '12 at 5:08

I have to change a little bit the code, cause i put a thread.sleep. Instead of it, i have to check if i have a value into result (in a while loop). I think this is happening because at that moment when i try to parse the value, i don;t have a value in result.