Skip to content

Instantly share code, notes, and snippets.

Avatar

Dao Le daolq

View GitHub Profile
@daolq
daolq / AppHolder.java
Created Jul 20, 2016 — forked from ok3141/AppHolder.java
Short snippet for reaching instance of Application entity in Android
View AppHolder.java
public class AppHolder {
private static final android.app.Application APP;
public static android.app.Application getApp() {
return APP;
}
static {
try {
Class<?> c = Class.forName("android.app.ActivityThread");
View RealmString.java
package vn.fstyle.realmandroiddemo.realm;
import io.realm.RealmObject;
/**
* RealmString.
*
* @author DaoLQ
*/
public class RealmString extends RealmObject {
View RealmAutoIncrement.java
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import io.realm.Realm;
import io.realm.RealmObject;
/**
* RealmAutoIncrement.
*
You can’t perform that action at this time.