Hi,

I noticed several questions for posting files to the server from the
Android Emulator, but I'm trying to send variables to an ASPX file
from the Emulator. I'm new to ASP and Android, so I'm wondering if I'm
doing this right. I've tested the files on the server and everything
seems to be working right. But, I can't get the Emulator to
communicate with the server. So, I was hoping someone could look at
this code and tell me if I'm doing the connection right.

...
URL url = new URL( "http://aspspider.info/augustine/
updateDatabase.aspx?
latitude=28.600646&longitude=-81.197951&sound=5" );
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("POST");
con.setDoOutput(true);
con.connect();
con.disconnect();
...

First, can this be done from the Emulator? And, if so, what am I doing
wrong?

If there is an existing discussion on this topic, can you point me to
it? I would greatly appreciate any help!

Cindy

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to