[android-developers] Callback mehod needed
Hi there. I have a problem which is somehow related to the system's way to handle activities and tasks.
I'm currently developing a simple chat application that uses ad-hoc wifi connections instead of bluetooth or infrastructured wifi. The reasons for that choice are beyond me (It's a college work). But the fact is that I need to "undo" the ad-hoc wireless network I just created when the user is no longer using my application. That is because if I leave it on, it's impossible for the user to connect to any other wifi hotspot.
What I've been doing while testing is just to accomodate the a bunch of code related to shutting off the ad hoc netwok within the OnStop() method of my main activity. But that approach has the obvious drawback of shutting off the network every time the user turns the phone sideways or goes to the settings activity (Since OnStop is called in both events).
So what I need is some kind of callback method that signals the end of the user's interaction with all my activities, not just one. Is that even possible? For what I've seen activities are grouped together in some kind of stack-like bundle called "task" but I could not find anything that could be used as a callback method signaling the end of the user interaction with a task.
Any ideas?
Nelson R. Perez
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home