calling servlet from application

by Opal » Tue, 07 Apr 2009 02:04:57 GMT


Sponsored Links
 Hi all,

I need to call a servlet from my android app and send/receive some
data (using post method). I don't know how to do it and reading the
API doesn't help me very much. Do u know any solution or have any idea
how to do it?

I've searched this group before writing and there are some solutions
but with the older version of API.

Any ideas, samples or suggestions?

--~--~---------~--~----~------------~-------~--~----~



calling servlet from application

by Mark Murphy » Tue, 07 Apr 2009 02:13:52 GMT


 


If you use HttpURLConnection, it works the same as in "regular Java":

 http://www.exampledepot.com/egs/java.net/pkg.html 

If you use org.apache.http.*, there is documentation and examples at:

 http://hc.apache.org 

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Training:  http://commonsware.com/training.html 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


calling servlet from application

by mark . kahrl » Thu, 09 Apr 2009 07:03:51 GMT


 Yes that is a wonderful feature of Android, in that much of the
backend functionality is the same as 'regular' java. You can even
stream objects back and forth to servlets, no need for chossy xml/soap
type web data services.

                            M





--~--~---------~--~----~------------~-------~--~----~



calling servlet from application

by Opal » Tue, 14 Apr 2009 14:43:30 GMT


 Gr8, thanks for the clues :)





--~--~---------~--~----~------------~-------~--~----~



calling servlet from application

by Marco Schmitz » Tue, 14 Apr 2009 14:51:54 GMT


 and how do I use authentication (simple http login /pw) and how https
/ ssl (with my own licence)?

using httpclient its quite simple...

do I need to set some htttp headers on my own?

greetings,
darolla

2009/4/14 Opal <maciek.op...@gmail.com>:




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. HELP : Ringtone tau2 hilang

Tadi sempet reboot spica, trus tau2 kok ringtone nya jadi aneh... pas
cek ke setting mo ganti ringtone, list ringtone nya gak ada... cuma
ada option silent.... hilang semua ringtone nya...

Duh... ... kenapa ya ? Gimana cara balikin ringtone nya nih ?


Thanks

-SF-

-- 
"Indonesian Android Community [id-android]" 

2. Notification when an audio stream is muted

A while ago I posted a topic in the forum at

3. Dungeon Hunter

4. tanya charger iphone utk ngecharge motodroid

5. Yuk cek speed android mu

6. Collision detection for Android game

7. Miley panas