Skip to content

Instantly share code, notes, and snippets.

khangaldi / RetrolamdaSamples
Created December 5, 2016 04:54
Scattered scripts in Java for testing Retrolambda and Reactive Programming in Java
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.jakewharton.rxbinding.view.RxView;
import java.util.ArrayList;
import rx.Observable;
import rx.functions.Action1;
import rx.schedulers.Schedulers;
khangaldi / gist:7c1128f6ff5c814496c83f65d4753749
Created January 22, 2017 12:17
SharedPreference the new way
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
public class KPref {
enum KDataType {