Java tutorial
//package com.java2s; import android.os.Bundle; public class Main { public static String printBundle(Bundle bundle) { StringBuilder sb = new StringBuilder(); for (String key : bundle.keySet()) { sb.append("\nkey:" + key + ", value:" + bundle.getString(key)); } return sb.toString(); } }