Skip to content

Instantly share code, notes, and snippets.

@itsalif
itsalif / SimpleXmlRequest.java
Last active Feb 25, 2019 — forked from ficusk/GsonRequest.java
Volley adapter for making XML Requests. It uses Simple-XML for serializing XML to Objects (http://simple.sourceforge.net/). Code is based of GsonRequest. Hope someone finds it useful.
View SimpleXmlRequest.java
import java.io.UnsupportedEncodingException;
import java.util.Map;
import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
@itsalif
itsalif / gradle-android
Last active Aug 29, 2015
Android gradle premade (for myself reference)
View gradle-android
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
defaultConfig {
packageName "some-package-name"
minSdkVersion 8
targetSdkVersion 19