22 lines
458 B
Java
22 lines
458 B
Java
|
package info.nightscout.utils;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
|
||
|
/**
|
||
|
* Created by mike on 14.08.2017.
|
||
|
*/
|
||
|
|
||
|
public class BundleLogger {
|
||
|
public static String log(Bundle bundle) {
|
||
|
if (bundle == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String string = "Bundle{";
|
||
|
for (String key : bundle.keySet()) {
|
||
|
string += " " + key + " => " + bundle.get(key) + ";";
|
||
|
}
|
||
|
string += " }Bundle";
|
||
|
return string;
|
||
|
}
|
||
|
}
|