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 [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
--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to