That's just not true.

On Friday, August 16, 2013 10:14:21 AM UTC+3, mbanzon wrote:
>
> There isn't a way to distinguish the two - unless you specifically start 
> the other/next activity from within the activity in question.
>
> Please do look into the application service method. You can add methods on 
> the application service to perform login and logout (possibly with a 
> timeout) using the onCreate/onPause/onResume eg. methods of your other 
> activities.
>
>
> On Fri, Aug 16, 2013 at 8:34 AM, passer <[email protected] 
> <javascript:>>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 
>> [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Michael Banzon
> http://michaelbanzon.com/ 
>

-- 
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