On Thu, Feb 10, 2011 at 2:19 PM, Hari <[email protected]> wrote: > Out Mobile Application required the user to provide username and > password to login.
Why? > After login, if the user navigates to another > application and tries to come back to our application again, i would > like to intercept this action and redirect the user to login screen > and then lead to where ever he was before. > > How can i achieve this? onResume() > Currently we are doing it a very crude way by tracking the user's > action in variables and in onResume() we check for the value of the > variable and make a decision if he should continue or be redirected to > login. Sounds about right. > Is there something to the order of an "Interceptor" which can use tell > me if the application coming to foreground was actually in the > background and not a new process. If you are called with onResume() and not onCreate(), you are coming back onto the screen after having not been on the screen. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

