Skip to content

Instantly share code, notes, and snippets.

@petecocoon
petecocoon / gist:4cce4c27400053a859cf
Created Feb 18, 2015
goo.gl URL shortener for Android
View gist:4cce4c27400053a859cf
import android.os.AsyncTask;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONException;
import org.json.JSONObject;