[android-developers] Re: Possible to Detect if OnResume is because Back button was hit?

2010-03-11 Thread Sam
A) I do some logging of information if a user goes back to a page from a back button versus some other way of accessing the page. B) I had tried the startActivityForResults but was curious what other way people have done it. On Mar 11, 12:02 am, TreKing treking...@gmail.com wrote: On Wed, Mar

[android-developers] Re: Possible to Detect if OnResume is because Back button was hit?

2010-03-10 Thread Robert Green
I kind of do something like this. I set a flag to false onResume and then set it true if the back button is hit. onPause, if that flag is true, I know it's because my user is backing out and I can respond in a certain way (knowing that we'll be going back to a previous activity). The previous

[android-developers] Re: Possible to Detect if OnResume is because Back button was hit?

2010-03-10 Thread Sam
Are you saying if you're on Activity A - Activity B, hit Back Button from Activity B, a static flag is set to true on the back key, When Activity A resumes, you check that static variable, and do your logic, then set the flag back to false? On Mar 10, 8:27 pm, Robert Green rbgrn@gmail.com