本文整理汇总了Java中com.activeandroid.ActiveAndroid.dispose方法的典型用法代码示例。如果您正苦于以下问题:Java ActiveAndroid.dispose方法的具体用法?Java ActiveAndroid.dispose怎么用?Java ActiveAndroid.dispose使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.activeandroid.ActiveAndroid
的用法示例。
在下文中一共展示了ActiveAndroid.dispose方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DeleteAndInitDb
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
public static void DeleteAndInitDb(Context context) {//KS
Configuration dbConfiguration = new Configuration.Builder(context).create();
try {
ActiveAndroid.dispose();
context.deleteDatabase("DexDrip.db");
//ActiveAndroid.initialize(dbConfiguration);
Log.d("wearSENSOR", "DeleteAndInitDb DexDrip.db deleted and initialized.");
} catch (Exception e) {
Log.e("wearSENSOR", "DeleteAndInitDb CATCH Error.");
}
}
示例2: fullDatabaseReset
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
public static void fullDatabaseReset() {
try {
clearCache();
ActiveAndroid.dispose();
ActiveAndroid.initialize(xdrip.getAppContext());
} catch (Exception e) {
Log.e(TAG,"Error restarting active android db");
}
}
示例3: tearDown
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void tearDown() throws Exception {
if (Cache.isInitialized()) {
ActiveAndroid.dispose();
}
getTargetContext().deleteDatabase(DATABASE_NAME);
super.tearDown();
}
示例4: dispose
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
public static void dispose() {
// ThreadPool
stopThreadPool();
// Network
stopRequestQueue();
// DataBase
ActiveAndroid.dispose();
APPLICATION = null;
}
示例5: deleteDatabase
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void deleteDatabase() {
Log.i(this, "deleteDatabase");
Prefs.clear();
deleteDatabase(getManifest("AA_DB_NAME"));
ActiveAndroid.clearCache();
ActiveAndroid.dispose();
ActiveAndroid.initialize(this);
HttpQueue.getInstance().cancel();
HttpQueue.getInstance().clear();
}
示例6: onTerminate
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void onTerminate() {
super.onTerminate();
ActiveAndroid.dispose();
}
示例7: onTerminate
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void onTerminate() {
super.onTerminate();
ActiveAndroid.dispose();
}
示例8: terminate
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void terminate() {
ActiveAndroid.dispose();
}
示例9: onTerminate
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void onTerminate() {
ActiveAndroid.dispose();
super.onTerminate();
}
示例10: tearDown
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
protected void tearDown() {
ActiveAndroid.dispose();
}
示例11: onTerminate
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void onTerminate() {
super.onTerminate();
BusPortal.getInstance().unregister(presenter);
ActiveAndroid.dispose();
}
示例12: onTerminate
import com.activeandroid.ActiveAndroid; //导入方法依赖的package包/类
@Override
public void onTerminate()
{
super.onTerminate();
ActiveAndroid.dispose();
}