/** * {@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(); }
/** * {@inheritDoc} * * @see android.app.Application#onLowMemory() */ @Override public void onLowMemory() { super.onLowMemory(); BitmapManager.clear("on Low Memory: "); ByteBufferManager.clear("on Low Memory: "); }