public static String getUserAgent ( ) { if ( userAgent == null ) { String userAgentComment = String . format ( Utility . LOCALE_US , "(Android %s; %s; %s)" , android . os . Build . VERSION . RELEASE , android . os . Build . BRAND , android . os . Build . MODEL ) ; userAgent = String . format ( "%s/%s %s" , Constants . HeaderConstants . USER_AGENT_PREFIX , Constants . HeaderConstants . USER_AGENT_VERSION , userAgentComment ) ; } return userAgent ; }
Gets the user agent to send over the wire to identify the client .