Skip to content

Instantly share code, notes, and snippets.

View leonardoaramaki's full-sized avatar
🛰️

Leonardo Aramaki leonardoaramaki

🛰️
View GitHub Profile
@leonardoaramaki
leonardoaramaki / helloworld.dex.md
Created May 24, 2017 04:58 — forked from lifuzu/helloworld.dex.md
execute the dex file in android with command
public class HelloWorld {
    public static void main(String[] args) {
         System.out.println("Hello World!");
    }
}

To run it on an android device:

javac HelloWorld.java
@leonardoaramaki
leonardoaramaki / AddCookiesInterceptor.java
Created March 12, 2017 22:26 — forked from tsuharesu/AddCookiesInterceptor.java
Handle Cookies easily with Retrofit/OkHttp
/**
* This interceptor put all the Cookies in Preferences in the Request.
* Your implementation on how to get the Preferences MAY VARY.
* <p>
* Created by tsuharesu on 4/1/15.
*/
public class AddCookiesInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {