Don't know what HTTPPoster is supposed to be, but it's not part of Android SDK:
http://developer.android.com/search.html#q=httpposter&t=0 Android has HttpPost & friends, which is taken from Apache Http library. http://developer.android.com/reference/org/apache/http/client/methods/HttpPost.html http://developer.android.com/reference/org/apache/http/client/HttpClient.html Google for examples, there are lots of them. -- Kostya 2011/4/7 Sarath Krishna <[email protected]> > Hi, > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

