當前位置: 首頁>>代碼示例>>Java>>正文


Java FlowManager.init方法代碼示例

本文整理匯總了Java中com.raizlabs.android.dbflow.config.FlowManager.init方法的典型用法代碼示例。如果您正苦於以下問題:Java FlowManager.init方法的具體用法?Java FlowManager.init怎麽用?Java FlowManager.init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.raizlabs.android.dbflow.config.FlowManager的用法示例。


在下文中一共展示了FlowManager.init方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的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.FlowManager; //導入方法依賴的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.FlowManager; //導入方法依賴的package包/類
@Override
public void onCreate() {
  super.onCreate();
  Fabric.with(this, new Crashlytics());
  FlowManager.init(this);
  MobileAds.initialize(this, "ca-app-pub-9985743520520066~4279780475");

  sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);

  String userAgent =
      String.format(Locale.UK, "%s.%d", BuildConfig.APPLICATION_ID, BuildConfig.VERSION_CODE);
  String sessionKeyKey = getString(R.string.saved_session_key);
  LastfmApi api = new LastfmApi();
  Caller caller = Caller.getInstance();

  if (sharedPreferences.contains(sessionKeyKey)) {
    String sessionKey = sharedPreferences.getString(sessionKeyKey, null);
    lastfmClient = new LastfmClient(api, caller, userAgent, sessionKey);
  } else {
    lastfmClient = new LastfmClient(api, caller, userAgent);
  }

  scroballDB = new ScroballDB();
  eventBus.register(this);
}
 
開發者ID:peterjosling,項目名稱:scroball,代碼行數:26,代碼來源:ScroballApplication.java

示例4: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    // Since this is app for developers we can log even in release build.
    Timber.plant(new Timber.DebugTree());

    JodaTimeAndroid.init(this);

    FlowManager.init(this);

    applicationComponent = DaggerApplicationComponent.builder()
            .applicationModule(new ApplicationModule(this))
            .apiModule(new ApiModule("https://api.travis-ci.org/"))
            .build();

    applicationComponent.inject(this);

    developerTools();
}
 
開發者ID:wiyarmir,項目名稱:TravisForAndroid,代碼行數:20,代碼來源:TravisApp.java

示例5: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的package包/類
@Override
  public void onCreate() {
      super.onCreate();

// setup DI
RoboGuice.getOrCreateBaseApplicationInjector(
		this,
		RoboGuice.DEFAULT_STAGE,
		RoboGuice.newDefaultRoboModule(this),
		new DatabaseModule());

// setup DB
FlowManager.init(this);

// setup logging
      if (BuildConfig.DEBUG) {
          Timber.plant(new Timber.DebugTree());
      } else {
          Fabric.with(this, new Crashlytics());
          Timber.plant(new CrashReportingTree());
      }
  }
 
開發者ID:FauDroids,項目名稱:KeepOn,代碼行數:23,代碼來源:KeepOnApp.java

示例6: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();

    ActiveAndroid.initialize(new Configuration.Builder(this)
                                     .setDatabaseName("activeandroid")
                                     .setDatabaseVersion(1)
                                     .setModelClasses(SimpleAddressItem.class, AddressItem.class,
                                                      AddressBook.class, Contact.class).create());

    Ollie.with(this)
            .setName("ollie")
            .setVersion(1)
            .setLogLevel(Ollie.LogLevel.FULL)
            .init();

    FlowManager.init(this);

    Sprinkles.init(this, "sprinkles.db", 2);

    RealmConfiguration realmConfig = new RealmConfiguration.Builder(this).build();
    Realm.setDefaultConfiguration(realmConfig);

    mDatabase = getDatabase();
}
 
開發者ID:Raizlabs,項目名稱:AndroidDatabaseLibraryComparison,代碼行數:26,代碼來源:MainApplication.java

示例7: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的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

示例8: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的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

示例9: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的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

示例10: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    Fabric.with(this, new Crashlytics(), new Answers());

    _updated = false;
    setInUpdate(false);

    //init the database orm
    FlowManager.init(this);

    //init the AmiiboHelper
    AmiiboHelper.init();

    mApplicationBus = EventBus.builder().build();

    mApplicationBus.register(this);

    AmiitoolFactory.getInstance().init(this);
}
 
開發者ID:codlab,項目名稱:amiibo,代碼行數:21,代碼來源:ApplicationController.java

示例11: setup

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的package包/類
/**
 * Factory 中的初始化
 */
public static void setup() {
    // 初始化數據庫
    FlowManager.init(new FlowConfig.Builder(app())
            .openDatabasesOnInit(true) // 數據庫初始化的時候就開始打開
            .build());

    // 持久化的數據進行初始化
    Account.load(app());
}
 
開發者ID:FZZFVII,項目名稱:pipe,代碼行數:13,代碼來源:Factory.java

示例12: initializeOrm

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的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

示例13: init

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的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

示例14: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的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

示例15: onCreate

import com.raizlabs.android.dbflow.config.FlowManager; //導入方法依賴的package包/類
@Override
public void onCreate() {
    FlowManager.init(this);
    FIR.init(this);
    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
    super.onCreate();
}
 
開發者ID:lueans,項目名稱:LueansRead,代碼行數:8,代碼來源:App.java


注:本文中的com.raizlabs.android.dbflow.config.FlowManager.init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。