Java tutorial
//package com.java2s; //License from project: Open Source License import android.os.Bundle; public class Main { private static final String TOKEN_CUSTOMER_SECRET_KEY = "auth_customer_secret_token"; public static void putCustomerSecretToken(final Bundle bundle, final String token) { putString(bundle, token, TOKEN_CUSTOMER_SECRET_KEY); } private static void putString(final Bundle bundle, final String token, final String key) { if (bundle != null) { bundle.putString(key, token); } } }