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;
import android.os.Parcelable;

public class Main {
    public static Bundle createBundle(final String key, final boolean value) {
        final Bundle bundle = new Bundle();
        bundle.putBoolean(key, value);
        return bundle;
    }

    public static Bundle createBundle(final String key, final String value) {
        final Bundle bundle = new Bundle();
        bundle.putString(key, value);
        return bundle;
    }

    public static Bundle createBundle(final String key, final Parcelable value) {
        final Bundle bundle = new Bundle();
        bundle.putParcelable(key, value);
        return bundle;
    }
}