Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
        }
    }
}