Skip to content

Instantly share code, notes, and snippets.

Evan Lin proevan

View GitHub Profile
View RealmString.java
package vn.fstyle.realmandroiddemo.realm;
import io.realm.RealmObject;
/**
* RealmString.
*
* @author DaoLQ
*/
public class RealmString extends RealmObject {
@jgilfelt
jgilfelt / CurlLoggingInterceptor.java
Created Jan 9, 2016
An OkHttp interceptor that logs requests as curl shell commands
View CurlLoggingInterceptor.java
/*
* Copyright (C) 2016 Jeff Gilfelt.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ficusk
ficusk / GsonRequest.java
Last active Jul 7, 2020
A Volley adapter for JSON requests that will be parsed into Java objects by Gson.
View GsonRequest.java
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
You can’t perform that action at this time.