Thursday, August 15, 2013

[android-developers] Re: close on minimise application

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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate