[android-beginners] Re: Send JSON object via HttpPost method

2009-09-09 Thread Alok Kulkarni
Ok.. ya i had taken that code part from the forum itself. :) On Thu, Sep 10, 2009 at 6:27 AM, Wayne Wenthin wrote: > Yep that is what I vaguely based mine on. I recognize the Praeda line. > I had to modify mine because I was not sending back an array of json objects > but a specific one that I

[android-beginners] Re: Send JSON object via HttpPost method

2009-09-09 Thread Wayne Wenthin
Yep that is what I vaguely based mine on. I recognize the Praeda line. I had to modify mine because I was not sending back an array of json objects but a specific one that I handle based on the ID on the backend with ruby. On Wed, Sep 9, 2009 at 1:43 AM, Alok Kulkarni wrote: > Hey Wayne, tha

[android-beginners] Re: Send JSON object via HttpPost method

2009-09-09 Thread Alok Kulkarni
Hey Wayne, thanks a lot.. I have also got a solution parallely which i would like to post URL url = new URL(serverURL); // open the conncetion HttpURLConnection connection = (HttpURLConnection)url.openConnection(); // Let the run-time system (RTS)

[android-beginners] Re: Send JSON object via HttpPost method

2009-09-08 Thread Wayne Wenthin
A snippet for what I do... public HttpResponse updateGirl(String url, Pawn girl, int pawnID) { HttpClient httpclient = new DefaultHttpClient(); HttpPut httpput = new HttpPut(url); // Execute the request try { List nameValuePairs = new ArrayList( 39); nameValuePairs.add(new BasicNameValuePair("id"

[android-beginners] Re: Send JSON object via HttpPost method

2009-09-08 Thread Alok Kulkarni
Any answers ?? On Tue, Sep 8, 2009 at 2:00 PM, Alok wrote: > > I have created a JSON object which i want to send over the network to > a server.Do i need to user OutputStream and BufferedOutput stream ? > I have read the RestClient example which parses an incoming JSON > object and retrieves the