Esempio n. 1
0
 public void finish() {
   stop.set();
   try {
     this.join();
   } catch (final InterruptedException e) {
   }
 }
  /**
   * {@inheritDoc}
   *
   * @see android.app.Application#onCreate()
   */
  @Override
  public void onCreate() {
    super.onCreate();

    instance = this;
    version = EBookDroidVersion.get(APP_VERSION_CODE);

    SettingsManager.init(this);
    CacheManager.init(this);
    MediaManager.init(this);

    initFonts();

    preallocateHeap(AppSettings.current().heapPreallocate);

    SettingsManager.addListener(this);
    onAppSettingsChanged(null, AppSettings.current(), null);
    onBackupSettingsChanged(null, BackupSettings.current(), null);

    GLConfiguration.stencilRequired = !IS_EMULATOR;

    initialized.set();
  }