Back to project page box-android-sdk-v2.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRI...
If you think the Android project box-android-sdk-v2 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.box.boxandroidlibv2; /*from ww w . j a v a 2 s . com*/ import com.box.boxjavalibv2.BoxConfigBuilder; public class BoxAndroidConfigBuilder extends BoxConfigBuilder { /** sdk version number */ private final static String VERSION_NUMBER = "v3.0.7"; private final static String COMBINED_VERSION = "java_%s,android_%s"; /** Default User-Agent String. */ private static final String USER_AGENT = "BoxAndroidLibraryV2"; public BoxAndroidConfigBuilder() { super(); this.setUserAgent(USER_AGENT); this.setVersion(getCombinedSdkVersion(super.getVersion(), VERSION_NUMBER)); } private static String getCombinedSdkVersion(final String javaVersion, final String androidVersion) { return String.format(COMBINED_VERSION, javaVersion, androidVersion); } }