Skip to content

Instantly share code, notes, and snippets.

@xalexchen
Created March 13, 2014 07:25
Show Gist options
  • Select an option

  • Save xalexchen/9523316 to your computer and use it in GitHub Desktop.

Select an option

Save xalexchen/9523316 to your computer and use it in GitHub Desktop.
USER_AGENT
/*
* A user-agent string that's sent to the HTTP site. It includes information about the device
* and the build that the device is running.
*/
public static final String USER_AGENT = "Mozilla/5.0 (Linux; U; Android "
+ android.os.Build.VERSION.RELEASE + ";"
+ Locale.getDefault().toString() + "; " + android.os.Build.DEVICE
+ "/" + android.os.Build.ID + ")";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment