jrgraf...@googlemail.com wrote: > I am currently trying to launch a GPS settings activity using > startActivityForResult....however it never seems to be calling my > onActivityResult function after it exits. I noticed the docs mentioned > that some Intent protocols are not defined to return a result, is this > one such example?
I would be surprised if the settings activities are built to return a result. After all, most of those activities adjust several settings, so what would the result be? > are there any flags that I could set to either make > the settings activity call onActivityResult, or even better make my > activity block until the launched activity returns? That depends on what you mean by "block". Your activity already blocks until the launched activity is closed. All activities work that way when starting up other activities. However, in this case, "block" does not mean startActivity() blocks. Instead, after you have called startActivity() and returned from whatever callback you are in, your activity will be stopped and the settings activity will be opened. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---