private static String toTTL ( String lastAccess , long timeout ) { Long ttl = timeout - ( ( System . currentTimeMillis ( ) - Long . parseLong ( lastAccess ) ) / 1000 ) ; return ttl . toString ( ) ; }
Calculates the Activity TTL