Skip to content

Instantly share code, notes, and snippets.

@khangaldi
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 {
String(1),
@khangaldi
khangaldi / RetrolamdaSamples
Created December 5, 2016 04:54
Scattered scripts in Java for testing Retrolambda and Reactive Programming in Java
import android.support.v7.app.AppCompatActivity;
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.android.schedulers.AndroidSchedulers;
import rx.functions.Action1;
import rx.schedulers.Schedulers;