I'm writing an app and would like to redirect the user from the main activity to enter a passcode. I've been able to run the passcode activity from my settings/preferences activity no problem: onActivityResult() gets called and everything works fine. From the main activity (the one set as MAIN in AndroidManifest.xml), though, it won't call onActivityResult(). I logged everything very closely and the passcode activity is doing the same thing in both cases (setResult() followed by finish()).
I noticed the RedirectEnter activity in the API demos, which is the one set as MAIN, does not actually do the redirect either, the redirect is in RedirectMain which is called only when you push the Go button. Is there some rule that says the MAIN activity cannot redirect? Currently I'm formulating how to reorganize my app such that the program doesn't ask for a passcode on the main screen, but that's really not the most elegant solution. I could post code but I've tried so many variations that I'm not sure which one is best to post. I've tried delaying the call to the passcode activity to later in the startup sequence (various points from onCreate() through onAttachedToWindow()) to no avail. onActivityResult() doesn't get called. Thanks, --Kevin -- 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

