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