I have an Activity where I show a user a Dialog on the onCreate(), the user is then allowed Click "OK" to dismiss the dialog, Click "RULES" to read some rules, Click 'HIDE" to hide the dialog in the future.
The problem I'm having is when the user click view rules, which launches the browser and then comes back to my activity, the dialog is no longer visible. I tried moving this onWindowFocusChanged to detect when the app has focus, but when the dialog is launched the app loses focus, so when the user clicks OK the app regains focus and then reshows the dialog. I've run into similar issues in the past, where a user leaves a dialog, navigates back through the activity stack and I want to something to happen on the previous activity, but onWindowFocusChanged seems to always cause small issues like this. Is there another method of executing code on the UI in an activity when it's navigated back too using the "back" button? -- 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

