I am trying to set the result in a PreferencesActivity so I can look
at extras in the caller inside onActivityResult.

The problem is that in onActivityResult(int requestCode, int
resultCode, Intent data), resultCode is always set to 0
(RESULT_CANCELLED) and the data is always null.

This sort of makes sense since the way one returns from a settings
dialog is by pressing back but I want to override the default
behavior.

I tried putting setResult in an overridden version of onPause (which
does get called but doesn't work), onStop (which never actually gets
called), and onDestroy (which never actually gets called either).

It seems like there should be a way to do this.

Thanks in advance for any help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to