Hello every one,

This is the code I wrote a code for uploading data from android phone
to a server

String url = "http://www.orsas.com/ServiceMatalan.php";;
                Map<String, String> kvPairs = new HashMap<String, String>();
                kvPairs.put("vehicle", dataRecord.toString());
                // Normally I would pass two more JSONObjects.....
                HttpResponse re = HTTPPoster.doPost(url, kvPairs);
                String temp = EntityUtils.toString(re.getEntity());
                if (temp.compareTo("SUCCESS")==0)
                {
                    Toast.makeText(this, "Sending complete!",
Toast.LENGTH_LONG).show();
                }


I get an error that  Httposter could not be resolved. Can anyone plese
help me out with this issue. Thanks in advance.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to