My activity opens the systems prefs when no internet connection is connected.
What is the best way to close the system prefs and go back to the activity as soon as the user activates wifi or 3g.
Is there a way to get a result using startActivityForRsults()?
Should I wake up the activity using a listener that detects when a connection is on?
Thank you or your thoughts
The user can press the BACK button to do this.
AFAIK, none of the Settings activities are designed for
startActivityForResult().No.
Please do not break Android navigation. What you are proposing is the same as if the user clicked a link on your Web page to visit a different site, clicked on a checkbox on that third-party page, and you now expecting to have some way to force the user immediately back to your page. That’s not how the Web works, and what you are proposing is not how Android works. Please allow the user to decide what to do next, whether that is press BACK to return to you, press HOME to go do something else, etc.