Java tutorial
//package com.java2s; import android.os.Bundle; import java.util.Map; public class Main { public static Bundle mapToBundle(Map<String, String> map) { Bundle bundle = new Bundle(); if (map != null) { for (String key : map.keySet()) { bundle.putString(key, map.get(key)); } } return bundle; } }