Android Properties Print printProperties(String TAG, Properties props)

Here you can find the source of printProperties(String TAG, Properties props)

Description

print Properties

Declaration

public static void printProperties(String TAG, Properties props) 

Method Source Code

//package com.java2s;
import java.util.Enumeration;
import java.util.Properties;

import android.util.Log;

public class Main {
    public static void printProperties(String TAG, Properties props) {
        @SuppressWarnings("unchecked")
        Enumeration<String> propNames = (Enumeration<String>) props
                .propertyNames();/*from   w w w . j  a v a 2s.  c  om*/
        while (propNames.hasMoreElements()) {
            String propName = propNames.nextElement();
            Log.d(TAG, propName + "=" + props.getProperty(propName));
        }
    }
}