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. Is it possible to use official Android icons in paid apps?

Hello,

is there some sort of prohibition to use official Android icons in
paid apps?

The Android SDK Terms of use reports this:

"3.3 Except to the extent required by applicable third party licenses,
you may not copy (except for backup purposes), modify, adapt,
redistribute, decompile, reverse engineer, disassemble, or create
derivative works of the SDK or any part of the SDK. Except to the
extent required by applicable third party licenses, you may not load
any part of the SDK onto a mobile handset or any other hardware device
except a personal computer, combine any part of the SDK with other
software, or distribute any software or device incorporating a part of
the SDK."


"3.6 Nothing in this License Agreement gives you a right to use any of
Google's trade names, trademarks, service marks, logos, domain names,
or other distinctive brand features."

Icons should be considered "part of the SDK" or "distinctive brand
features"?

Thanks

Mariux



-- 

2. Make a call by sending/receiving the audio to/from a network stream

Hi all,

I'm doing a feasibility study for developing an Android application
capable of doing the following:

1. Make or receive 3G phone calls (but it can also use the native
dialer)
2. Forward the incoming audio data to a network stream via wifi
3. Acquire the outgoing audio data from a wifi network stream and send
it into the mic input
4. Be as fast as possible in doing the audio forwarding, in order to
minimize the call delay.

I've done some hypothesis on how to deal with the incoming audio, but
I have no idea on how I can send the outgoing data (the voice uplink)
into the mic input of the audio mixer.

For the incoming audio I was thinking I could record the voice
downlink and save the recorded AMR data to a network socket, but I
don't know how efficient this could be since it depends on how the
platform will handle the data buffering, btw in this case I think I
can still use the native dialer.

Does anyone have suggestions on this topic?

Thanks in advance.
Pizza67

-- 

3. VideoView setVideoURI to video contained in applications assets Folder

4. Http Access Control Support in 1.6

5. Intercept incoming and outgoing Phone Call and text messages

6. ANNOUNCE: RoboGuice 1.1 now available

7. Podcast client