Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LogUtil {
- private static final String TAG = "IntentDump";
- public static void dumpIntent(Intent i){
- Bundle bundle = i.getExtras();
- if (bundle != null) {
- Set<String> keys = bundle.keySet();
- StringBuilder stringBuilder = new StringBuilder();
- stringBuilder.append("IntentDump \n\r");
- stringBuilder.append("-------------------------------------------------------------\n\r");
- for (String key : keys) {
- stringBuilder.append(key).append("=").append(bundle.get(key)).append("\n\r");
- }
- stringBuilder.append("-------------------------------------------------------------\n\r");
- Log.i(TAG, stringBuilder.toString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement