Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;

import android.util.Log;

public class Main {
    public static String decodeParams(List<NameValuePair> params, String queryString) {
        if (params != null) {
            queryString = "?" + URLEncodedUtils.format(params, "UTF-8");
            Log.d("queryString", queryString);
        } else {
            queryString = "";
            Log.d("queryString", "empty query string");
        }
        return queryString;
    }
}