Another activity within your app? If so, just make all of your activities 
set the timestamp in onPause to avoid just that. 

If you with "going to another activity" mean any activity within any app 
including things like the launcher I don't understand what you want to do. 

On Friday, August 16, 2013 8:34:29 AM UTC+2, passer wrote:
>
> And if user go to another activity and come back after 10 minute he should 
> enter password again?
> It is not right. 
>
> there shoul be correct way to distinguish minimization from going to 
> another activity.
>
> четверг, 15 августа 2013 г., 16:57:56 UTC+5 пользователь Johan Appelgren 
> написал:
>>
>> You could have a timestamp set in onPause that you check in 
>> onCreate/onResume. If it has been too long redirect to your login activity.
>>
>> On Thursday, August 15, 2013 1:29:55 PM UTC+2, passer wrote:
>>>
>>> But how activity knows if user already authenticated.
>>>
>>> if I use static variable isAuthenticated. Value of this variable will 
>>> "true" after application minimized. and the problem remains.
>>>
>>> I think alone way to do this is handle of minimizing.
>>>
>>> среда, 14 августа 2013 г., 13:51:25 UTC+5 пользователь Piren написал:
>>>>
>>>> that's a bad idea... unless your application is just one activity, it 
>>>> will probably piss your users off that they have to navigate it from the 
>>>> start every time it is being backgrounded.
>>>> take mbanzon's idea - each activity will need to request the password 
>>>> if needed. 
>>>> You can do it easily by extending an activity with code that handles 
>>>> that, then having all the needed activities inherit from it.
>>>>
>>>>
>>>>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to