Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Intent; import android.os.Bundle; public class Main { public static void dumpIntent(Intent intent) { System.out.println("action: " + intent.getAction()); System.out.println("data: " + intent.getData()); System.out.println("extras:"); Bundle bundle = intent.getExtras(); for (String key : bundle.keySet()) { Object object = bundle.get(key); System.out.println(key + "->" + object + "(" + object.getClass().getName() + ")"); } } }