On Thu, May 13, 2010 at 1:30 PM, dillipk <[email protected]> wrote:

> Basically my requirement is,  as soon as you try to leave out of
> the screen(Whether by hitting BACK key), it makes a HTTP request (by sending
> some data from the current screen)  to get some data from the server and
> once it receives the response from the server, it can leave out.
>

This is a terrible requirement. Get rid of it. What could your app possibly
need with an HTTP connection as it's closing?

If you must send and / or receive data when the user is exiting your app,
start a service to do it in the background.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

Reply via email to