Java tutorial
//package com.java2s; import android.util.Log; import org.apache.http.client.methods.HttpUriRequest; public class Main { private static final String LOG_TAG = "ClientLoginHelper"; private static final String AUTHORIZATION_HEADER_PREFIX = "GoogleLogin auth="; private static void addGoogleAuthHeader(HttpUriRequest request, String token) { if (token != null) { Log.i(LOG_TAG, "adding auth token token: " + token); request.addHeader("Authorization", AUTHORIZATION_HEADER_PREFIX + token); } } }