Posting data using HTTP POST to a Servlet

by arun » Wed, 20 Jan 2010 02:06:33 GMT


Sponsored Links
 Hi,

I am trying to use the below to post my data to a servlet but seems
like not working.

 http://www.androidsnippets.org/snippets/36/ 

I am posting to a servlet in Tomcat in my local machine using host:
192.168.0.1:80

Basically I am posting the data to,

1. Save into database using servlet
2. Then I need to get that data back from DB using HTTPGET via another
Servlet.

Please help.

Thanks,
Arun



Other Threads

1. Confused by @Override

Hi-- I am not very experienced with Java, and I am confused about overriding 
a method. I am trying to override the OnBufferDraw() method by extending 
KeyboardView, like this:

  public class PhoneticKeyboardView extends KeyboardView {

       @Override
       private void onBufferDraw() {
            if (mBuffer == null || mKeyboardChanged) { ...

But when I compile it I get an error:

  cannot find symbol
    [javac] symbol  : variable mBuffer
    [javac] location: class 
com.tabcomputing.android.zenboard.PhoneticKeyboardView
    [javac]         if (mBuffer == null || mKeyboardChanged) {
    [javac]             ^

Which I don't understand b/c mBuffer is defined in KeyboardView. What am I 
doing wrong. Surely I do not have to redefine every class variable of the 
superclass?

-- 

2. Internet for the App

Hello Folks,

I hope you can help me with a special problem I have. The android app
I am developing requires the internet for every activity (data will be
submitted to the server). My question is: how can I get "notified"
when the connection breaks down/gets up again? Is there any good
solution?

Thank you.

-- 

3. The server could not process your apk. Try again. (again...)

4. installing sdk

5. Android 3.0 Starter Pack - XML Verification Error

6. Regarding Image Fetching

7. Android API 10