Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.os.Bundle;

public class Main {
    private static final String TOKEN_CUSTOMER_KEY = "auth_customer_token";

    public static String getCustomerToken(final Bundle bundle) {
        return getString(bundle, TOKEN_CUSTOMER_KEY);
    }

    private static String getString(final Bundle bundle, final String key) {
        if (bundle != null) {
            return bundle.getString(key, null);
        }

        return null;
    }
}