Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.os.Bundle;
import android.os.Parcelable;

import java.util.Map;

public class Main {
    public static Bundle toBundle(Map<String, ? extends Parcelable> input) {
        Bundle output = new Bundle();
        for (String key : input.keySet()) {
            output.putParcelable(key, input.get(key));
        }
        return output;
    }
}