import android.app.Application;
import android.content.Context;
import com.facebook.stetho.Stetho;
import com.uphyca.stetho_realm.RealmInspectorModulesProvider;
import java.security.SecureRandom;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import tsou.com.simple.realmtest.migration.CustomMigration;
import tsou.com.simple.realmtest.utils.UIUtils;
/**
- Created by Administrator on 2017/12/15 0015.
*/
public class MyApplication extends Application {
/**
- 上下文
*/
private static MyApplication instance;
private static RealmConfiguration config;
private static String key = “huangxiaoguo1234”;
@Override
public void onCreate() {
super.onCreate();
/**
- 在Realm中Stetho需要配置
*/
Stetho.initialize(
Stetho.newInitializerBuilder(th