Log java.util.Properties - Android android.util

Android examples for android.util:Log

Description

Log java.util.Properties

Demo Code

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();
    while (propNames.hasMoreElements()) {
      String propName = propNames.nextElement();
      Log.d(TAG, propName + "=" + props.getProperty(propName));
    }/*from  ww w . j  a  v a  2  s  .c om*/
  }

}

Related Tutorials