Esdras Beleza wrote: > 5) Here comes the problem: if I go to other application (browser, for > example) and go back to my application, the intent seems to be received > again, onResume() is called and the dialog A, B or C is shown. But they > must be shown *only* when the widget is clicked. > > Any suggestion? I'm so tired of this problem that I can't think about > any new solution.
I am assuming there is more to the application than the three dialogs, by virtue of: "if I go to other application (browser, for example) and go back to my application". This means, apparently, that you are trying to use the same activity for at least four different things: -- dialog A -- dialog B -- dialog C -- whatever other functionality you "go back to" Move your dialog A/B/C handling into an activity that finish()-es itself when done, so that it is not in the user's BACK button history. If need be, do that after calling startActivity() for the activity that does the rest of your app. That way, your dialog-displaying activities cannot be navigated to except by your widget. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- 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

