Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
        }
        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);
        }
    }
}