当前位置: 首页>>代码示例>>Java>>正文


Java FlowConfig类代码示例

本文整理汇总了Java中com.raizlabs.android.dbflow.config.FlowConfig的典型用法代码示例。如果您正苦于以下问题:Java FlowConfig类的具体用法?Java FlowConfig怎么用?Java FlowConfig使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FlowConfig类属于com.raizlabs.android.dbflow.config包,在下文中一共展示了FlowConfig类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();

    // instantiates DBFlow
    FlowManager.init(new FlowConfig.Builder(this).build());

    // instantiate volley request
    VolleyRequestQueue.getInstance().initialize(this);

    // start push notification service
    startService(new Intent(this, InstanceIDService.class));

    // instantiate app data
    initialize(this);
}
 
开发者ID:Q115,项目名称:Goalie_Android,代码行数:17,代码来源:MainApplication.java

示例2: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    FlowManager.init(new FlowConfig.Builder(this).build());

    Properties properties = new Properties();
    InputStream stream = null;
    try {
        stream = getAssets().open("conf.properties");
        properties.load(stream);
        CrashReport.initCrashReport(getApplicationContext(), properties.getProperty("bugly.appId"), false);
    } catch (IOException e) {
        Log.w(TAG, e);
    } finally {
        Streams.safeClose(stream);
    }
}
 
开发者ID:YieldNull,项目名称:Biu,代码行数:18,代码来源:MyApplication.java

示例3: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    Fabric.with(this, new Crashlytics());
    AppSettingsBuilder.getInstance().init(getApplicationContext());
    PreferencesState.getInstance().init(getApplicationContext());
    LocationMemory.getInstance().init(getApplicationContext());
    TypefaceCache.getInstance().init(getApplicationContext());
    AutoTabLayoutUtils.init();

    D2.init(this);
    FlowConfig flowConfig = new FlowConfig
            .Builder(this)
            .addDatabaseHolder(EyeSeeTeaGeneratedDatabaseHolder.class)
            .build();
    FlowManager.init(flowConfig);

    // Create indexes to accelerate the DB selects and avoid SQlite errors
    createDBIndexes();
}
 
开发者ID:EyeSeeTea,项目名称:malariapp,代码行数:21,代码来源:EyeSeeTeaApplication.java

示例4: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    if (instance == null) {
        instance = this;
    }
    FlowManager.init(new FlowConfig.Builder(this).build());

    Stetho.initializeWithDefaults(this);

    if (LeakCanary.isInAnalyzerProcess(this)) {
        return;
    }
    LeakCanary.install(this);

}
 
开发者ID:apache,项目名称:incubator-taverna-mobile,代码行数:17,代码来源:TavernaApplication.java

示例5: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
  super.onCreate();

  appComponent = DaggerAppComponent.builder()
      .appModule(new AppModule(JianShiApplication.this))
      .build();

  final Fabric fabric = new Fabric.Builder(this)
      .kits(new Crashlytics())
      .debuggable(true)
      .build();
  Fabric.with(fabric);
  Stetho.initializeWithDefaults(this);
  instance = this;
  FlowManager.init(new FlowConfig.Builder(this).openDatabasesOnInit(true).build());

  initLog();

  CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
      .setDefaultFontPath("fonts/jianshi_default.otf")
      .setFontAttrId(R.attr.fontPath)
      .build()
  );
}
 
开发者ID:wingjay,项目名称:jianshi,代码行数:26,代码来源:JianShiApplication.java

示例6: setup

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
/**
 * Factory 中的初始化
 */
public static void setup() {
    // 初始化数据库
    FlowManager.init(new FlowConfig.Builder(app())
            .openDatabasesOnInit(true) // 数据库初始化的时候就开始打开
            .build());

    // 持久化的数据进行初始化
    Account.load(app());
}
 
开发者ID:FZZFVII,项目名称:pipe,代码行数:13,代码来源:Factory.java

示例7: initializeOrm

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
private void initializeOrm() {
    FlowManager.init(
            FlowConfig.builder(this)
                    .addDatabaseConfig(
                            DatabaseConfig.builder(DBFlowRecipeDatabase.class)
                            .databaseName(DBFlowRecipeDatabase.NAME)
                            .build())
                    .build()

    );

}
 
开发者ID:ecarrara-araujo,项目名称:yabaking,代码行数:13,代码来源:YaBakingApplication.java

示例8: init

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
private void init() {
    FlowManager.init(FlowConfig.builder(this)
            .addDatabaseConfig(DatabaseConfig.builder(TimedTaskDatabase.class)
                    .modelNotifier(DirectModelNotifier.get())
                    .build())
            .build());
    ThemeColorManager.setDefaultThemeColor(new ThemeColor(getResources().getColor(R.color.colorPrimary), getResources().getColor(R.color.colorPrimaryDark), getResources().getColor(R.color.colorAccent)));
    ThemeColorManager.init(this);
    AutoJs.initInstance(this);
    GlobalKeyObserver.getSingleton();
    setupDrawableImageLoader();
    TimedTaskScheduler.setupRepeating(this);
}
 
开发者ID:hyb1996,项目名称:Auto.js,代码行数:14,代码来源:App.java

示例9: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    // This instantiates DBFlow
    FlowManager.init(new FlowConfig.Builder(this).build());
    // add for verbose logging
    // FlowLog.setMinimumLoggingLevel(FlowLog.Level.V);
}
 
开发者ID:micromasterandroid,项目名称:androidadvanced,代码行数:9,代码来源:MyApplication.java

示例10: init

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Before
public void init() throws Exception {
    assertTrue(BuildConfig.DEBUG); // unit test should only be run on debug at this time

    FlowManager.init(new FlowConfig.Builder(RuntimeEnvironment.application).build());
    VolleyRequestQueue.getInstance().initialize(RuntimeEnvironment.application);
    setInternalState(VolleyRequestQueue.getInstance(), "mRequestQueue",
            newVolleyRequestQueueForTest(RuntimeEnvironment.application));

    ImageHelper.getInstance().initialize(RuntimeEnvironment.application);
    UserHelper.getInstance().initialize();
    GoalHelper.getInstance().initialize();
    PreferenceHelper.getInstance().initialize(RuntimeEnvironment.application);
    UserHelper.getInstance().LoadContacts();
}
 
开发者ID:Q115,项目名称:Goalie_Android,代码行数:16,代码来源:BaseTest.java

示例11: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();

    FlowManager.init(new FlowConfig.Builder(this).build());

    BluetoothSyncService.startOrPromptBluetooth(this);
}
 
开发者ID:aarmea,项目名称:noise,代码行数:9,代码来源:NoiseApplication.java

示例12: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    thisApp = this;
    toaster = new Toast(this);

    // initialize firebase analytics
    Analytics.init(this);

    // initialize db flow
    FlowManager.init(new FlowConfig.Builder(this).build());
}
 
开发者ID:unparalleled,项目名称:kcards,代码行数:13,代码来源:ThisApp.java

示例13: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();

    if (BuildConfig.DEBUG) {
        Timber.plant(new Timber.DebugTree());
        Fabric.with(this, new Crashlytics());
    }

    FlowManager.init(new FlowConfig.Builder(this).build());
    Stetho.initializeWithDefaults(this);
}
 
开发者ID:therajanmaurya,项目名称:Stock-Hawk,代码行数:13,代码来源:StockHawkApplication.java

示例14: setApplication

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
public static void setApplication(Application application) {
    if (application == null || application != APPLICATION) {
        Model.log(TAG, "setApplication");

        APPLICATION = application;
        // DB Flow init
        FlowManager.init(new FlowConfig.Builder(application)
                .openDatabasesOnInit(true)
                .build());

        stopRequestQueue();
        REQUEST_QUEUE = Volley.newRequestQueue(APPLICATION);
    }
}
 
开发者ID:qiujuer,项目名称:UPMiss,代码行数:15,代码来源:Model.java

示例15: onCreate

import com.raizlabs.android.dbflow.config.FlowConfig; //导入依赖的package包/类
@Override
public void onCreate() {
	super.onCreate();

	FlowManager.init(new FlowConfig.Builder(this).build());
	FlowLog.setMinimumLoggingLevel(FlowLog.Level.V);

	TwitterApplication.context = this;
}
 
开发者ID:amatsuba1222,项目名称:TwitterApp,代码行数:10,代码来源:TwitterApplication.java


注:本文中的com.raizlabs.android.dbflow.config.FlowConfig类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。