Lordsaibat wrote: > ok I have two classes my main class calls a menu class when the user > gets done with that they press the back button to go to the main > class. on the main class I have onActivityResult setup but no matter > what the data field is null all the time even though I setup the > bundle and attached it to an Intent. Please look over my code and see > what it going on.
I would not use onPause() for your setResult()/finish() call. First, I think that is too late for the setResult() logic. Second, onPause() will also be invoked at other times (e.g., when the user takes a phone call). If you want to set the result when the use presses the BACK button, then set the result when the user presses the BACK button, by implementing onBackPressed() in newer versions of Android or onKeyDown() in older versions of Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- 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

