Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.os.Bundle;

public class Main {

    public static String deserialBundle(Bundle bundle) {
        if (bundle == null)
            return null;
        StringBuilder params = new StringBuilder();
        for (String key : bundle.keySet()) {
            params.append(key + "=" + bundle.get(key) + "&");
        }

        return params.length() > 0 ? params.substring(0, params.length() - 1) : null;
    }
}