Example #1
0
 public static void printList(String tag, List<? extends Object> list) {
   if (list == null) {
     Log.i(tag, "list is null");
     return;
   }
   for (Object val : list) {
     Log.i(tag, val.toString());
   }
 }
Example #2
0
 public static void printArray(String tag, byte[] list) {
   if (list == null) {
     Log.i(tag, "list is null");
     return;
   }
   StringBuilder builder = new StringBuilder("size:" + list.length + ", [");
   for (byte val : list) {
     builder.append(val).append(",");
   }
   builder.deleteCharAt(builder.length() - 1);
   builder.append("]");
   Log.i(tag, builder.toString());
 }