public static boolean hasTokenInformation(Bundle bundle){
  if (bundle == null) {
    return false;
  }
  String token=bundle.getString(TOKEN_KEY);
  if ((token == null) || (token.length() == 0)) {
    return false;
  }
  long expiresMilliseconds=bundle.getLong(EXPIRATION_DATE_KEY,0L);
  if (expiresMilliseconds == 0L) {
    return false;
  }
  return true;
}

public static boolean hasTokenInformation ( Bundle bundle ) { if ( bundle == null ) { return false ; } String token = bundle . getString ( TOKEN_KEY ) ; if ( ( token == null ) || ( token . length ( ) == 0 ) ) { return false ; } long expiresMilliseconds = bundle . getLong ( EXPIRATION_DATE_KEY , 0L ) ; if ( expiresMilliseconds == 0L ) { return false ; } return true ; }
returns a boolean indicating whether a bundle contains properties that could be a valid saved token .
