Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.os.Bundle;

public class Main {
    /**
     * Puts long value into a bundle. If bundle is null new one will be created.
     *
     * @param bundle to put into
     * @param key    to put under
     * @param value  to put
     * @return bundle with the value
     */
    public static Bundle putLong(Bundle bundle, String key, long value) {
        if (bundle == null) {
            bundle = new Bundle();
        }
        bundle.putLong(key, value);
        return bundle;
    }
}