// ex. dumpExtra(getIntent()); static private void dumpExtra(Intent intent) { if (intent == null) { Log.v("dumpExtra", "null"); return; } Bundle extras = intent.getExtras(); if (extras != null) { Iterator<?> it = extras.keySet().iterator(); while (it.hasNext()) { String key = (String) it.next(); Log.v("dumpExtra", "key: " + key); } } }
4月 032015