1

Sending json Post date in android with parameter

view story
linux-howto

http://stackoverflow.com – I'm trying to make a POST request with Android, but I'm not succeeding. I think the problem is in how to set the parameters for resquisição and Header. Below is my method I do the request ... public void testPostDate() { HttpClient client = new DefaultHttpClient(); HttpConnectionParams.setConnectionTimeout(client.getParams(), 10000); HttpResponse response; Gson gson = new Gson(); CrimePOST.Crime crime = new CrimePOST().new Crime(10, "São Paulo", "descrição", 10.00, 30.00); CrimePOST crimePost = new CrimePOST(); crimePost.setCrime(crime); Li (HowTos)