I have an app that has some network connections that are causing
issues when the app closes/reopens. I would like to close the
connections when the app exits, and reinstantiate them when it opens
again. onCreate/onDestroy don't work for this purpose because they
get called for the foreground activity in other situations, such as
when the keyboard slides out, and the rapid succession of these calls
make it impossible to reliably tear down/reopen the connections
without running into race conditions. How can I tell when the app has
exited? Is there a better way to deal with network connections?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---