Code example for HttpUriRequest

Methods: setHeader

	public void set(HttpUriRequest request) {
		if (mUserAgent == null)
		request.setHeader(HEADER_USER_AGENT, mUserAgent);
	 * static method to get display params. 
	 * @param activity 
	 *            a target Activity class object. 
	 * @return int-array if activity would not null, null if activity would be 
	 *         null. 
	public static int[] getDisplayParams(Activity activity) {
		if (activity != null) {
Connect your IDE to all the code out there  Get Codota for Java