Android Intent Set dumpBundleKeys(Intent intent)

Here you can find the source of dumpBundleKeys(Intent intent)

Description

dump Bundle Keys

Declaration

public static void dumpBundleKeys(Intent intent) 

Method Source Code

//package com.java2s;

import android.content.Intent;

import android.os.Bundle;
import android.util.Log;

public class Main {
    private static final String TAG = "dev";

    public static void dumpBundleKeys(Intent intent) {
        if (intent == null) {
            Log.d(TAG, "intent is null");
            return;
        }/*from   w  w  w  . ja  v  a  2  s.c om*/
        dumpBundleKeys(intent.getExtras());
    }

    public static void dumpBundleKeys(Bundle bundle) {
        if (bundle == null) {
            Log.d(TAG, "extras bundle is null");
            return;
        }
        Log.d(TAG, "bundle keys:");
        for (String o : bundle.keySet()) {
            Log.d(TAG, o);
        }
    }
}

Related

  1. initIntentFilterFromXml(IntentFilter inf, XmlPullParser xpp)
  2. pushNotification(Context context, int notId, PendingIntent pIntent, int iconRID, String title, String summary, boolean autoCancel, boolean vibrate, boolean light, boolean sound)
  3. updateIntentExplicitness(Context context, Intent implicitIntent)
  4. getAppStartIntent(Context context)
  5. setBlankContentIntent(Context context, NotificationCompat.Builder builder)
  6. setNewTaskFlag(@Nonnull Intent intent)
  7. createCallIntent(String phoneNumber)
  8. extractSMSmessages(Intent intent)