Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;
import java.util.Map;

import android.os.Bundle;

public class Main {
    public static Map<String, String> bundleToMap(Bundle bundle) {
        if (bundle == null)
            return null;
        Map<String, String> map = new HashMap<String, String>();
        for (String key : bundle.keySet()) {
            map.put(key, bundle.get(key).toString());
        }
        return map;
    }
}