Java Code Examples for com.j256.ormlite.android.apptools.OpenHelperManager#releaseHelper()
The following examples show how to use
com.j256.ormlite.android.apptools.OpenHelperManager#releaseHelper() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KADataService.java From android-viewer-for-khan-academy with GNU General Public License v3.0 | 6 votes |
@Override public void onDestroy() { Log.d(LOG_TAG, "onDestroy"); api = null; captionManager = null; offlineVideoManager.destroy(); offlineVideoManager = null; thumbnailManager.destroy(); thumbnailManager = null; OpenHelperManager.releaseHelper(); flushResponseCache(); mBinder.setDataService(null); mBinder = null; notificationManager = null; super.onDestroy(); }
Example 2
Source File: BulkReadCardDataOperationRunner.java From Walrus with GNU General Public License v3.0 | 6 votes |
@Override public void run() { databaseHelper = OpenHelperManager.getHelper(context, DatabaseHelper.class); try { readCardDataOperation.execute(context, this, this); } catch (final IOException exception) { new Handler(context.getMainLooper()).post(new Runnable() { @Override public void run() { Toast.makeText(context, context.getString(R.string.failed_bulk_reading, exception.getMessage()), Toast.LENGTH_LONG).show(); } }); } OpenHelperManager.releaseHelper(); onStopCallback.onStop(this); }
Example 3
Source File: FlowActivity.java From flow-android with MIT License | 5 votes |
@Override protected void onDestroy() { super.onDestroy(); if (flowDatabaseHelper != null) { OpenHelperManager.releaseHelper(); flowDatabaseHelper = null; } ((FlowApplication) getApplication()).getMixpanel().flush(); }
Example 4
Source File: TodayFragment.java From Notification-Analyser with MIT License | 5 votes |
@Override public void onDestroy() { super.onDestroy(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 5
Source File: IgnoredApps.java From Notification-Analyser with MIT License | 5 votes |
@Override public void onDestroy() { super.onDestroy(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 6
Source File: HistoryFragment.java From Notification-Analyser with MIT License | 5 votes |
@Override public void onDestroy() { super.onDestroy(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 7
Source File: AppDetail.java From Notification-Analyser with MIT License | 5 votes |
@Override public void onDestroy() { super.onDestroy(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 8
Source File: NotificationListener.java From Notification-Analyser with MIT License | 5 votes |
@Override public void onDestroy() { super.onDestroy(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 9
Source File: ApplicationAndroidStarter.java From AndroidStarter with Apache License 2.0 | 5 votes |
@Override public void onTerminate() { super.onTerminate(); sSharedApplication = null; OpenHelperManager.releaseHelper(); merlin.unbind(); }
Example 10
Source File: HistorySyncService.java From SightRemote with GNU General Public License v3.0 | 5 votes |
@Override public void onDestroy() { pendingIntent.cancel(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 11
Source File: SightActivity.java From SightRemote with GNU General Public License v3.0 | 5 votes |
@Override protected void onDestroy() { super.onDestroy(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 12
Source File: DatabaseHelper.java From poetry with Apache License 2.0 | 4 votes |
public static void releaseHelper() { OpenHelperManager.releaseHelper(); }
Example 13
Source File: OrmLiteDatabaseHelper.java From hash-checker with Apache License 2.0 | 4 votes |
@Override public void releaseHelper() { OpenHelperManager.releaseHelper(); }
Example 14
Source File: DbProvider.java From Man-Man with GNU General Public License v3.0 | 4 votes |
public static void releaseHelper() { OpenHelperManager.releaseHelper(); databaseHelper = null; }
Example 15
Source File: OutlineFragment.java From mOrgAnd with GNU General Public License v2.0 | 4 votes |
@Override public void onDestroy() { Application.getBus().unregister(this); super.onDestroy(); OpenHelperManager.releaseHelper(); }
Example 16
Source File: DemoDataGenerator.java From Notification-Analyser with MIT License | 4 votes |
private void close() { if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } }
Example 17
Source File: MainActivity.java From xpra-client with GNU General Public License v3.0 | 4 votes |
@Override protected void onDestroy() { OpenHelperManager.releaseHelper(); super.onDestroy(); }
Example 18
Source File: XpraActivity.java From xpra-client with GNU General Public License v3.0 | 4 votes |
@Override protected void onDestroy() { OpenHelperManager.releaseHelper(); super.onDestroy(); }
Example 19
Source File: OrmLiteBaseAppCompatActivity.java From Walrus with GNU General Public License v3.0 | 4 votes |
@Override protected void onDestroy() { super.onDestroy(); OpenHelperManager.releaseHelper(); }