Java Code Examples for com.activeandroid.util.Log#v()

The following examples show how to use com.activeandroid.util.Log#v() . 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: Cache.java    From clear-todolist with GNU General Public License v3.0 6 votes vote down vote up
public static synchronized void initialize(Configuration configuration) {
	if (sIsInitialized) {
		Log.v("ActiveAndroid already initialized.");
		return;
	}

	sContext = configuration.getContext();
	sModelInfo = new ModelInfo(configuration);
	sDatabaseHelper = new DatabaseHelper(configuration);

	// TODO: It would be nice to override sizeOf here and calculate the memory
	// actually used, however at this point it seems like the reflection
	// required would be too costly to be of any benefit. We'll just set a max
	// object size instead.
	sEntities = new LruCache<String, Model>(configuration.getCacheSize());

	openDatabase();

	sIsInitialized = true;

	Log.v("ActiveAndroid initialized successfully.");
}
 
Example 2
Source File: Cache.java    From mobile-android-survey-app with MIT License 6 votes vote down vote up
public static synchronized void initialize(Configuration configuration) {
	if (sIsInitialized) {
		Log.v("ActiveAndroid already initialized.");
		return;
	}

	sContext = configuration.getContext();
	sModelInfo = new ModelInfo(configuration);
	sDatabaseHelper = new DatabaseHelper(configuration);

	// TODO: It would be nice to override sizeOf here and calculate the memory
	// actually used, however at this point it seems like the reflection
	// required would be too costly to be of any benefit. We'll just set a max
	// object size instead.
	sEntities = new LruCache<String, Model>(configuration.getCacheSize());

	openDatabase();

	sIsInitialized = true;

	Log.v("ActiveAndroid initialized successfully.");
}
 
Example 3
Source File: Cache.java    From clear-todolist with GNU General Public License v3.0 5 votes vote down vote up
public static synchronized void dispose() {
	closeDatabase();

	sEntities = null;
	sModelInfo = null;
	sDatabaseHelper = null;

	sIsInitialized = false;

	Log.v("ActiveAndroid disposed. Call initialize to use library.");
}
 
Example 4
Source File: Cache.java    From mobile-android-survey-app with MIT License 5 votes vote down vote up
public static synchronized void dispose() {
	closeDatabase();

	sEntities = null;
	sModelInfo = null;
	sDatabaseHelper = null;

	sIsInitialized = false;

	Log.v("ActiveAndroid disposed. Call initialize to use library.");
}
 
Example 5
Source File: Cache.java    From clear-todolist with GNU General Public License v3.0 4 votes vote down vote up
public static synchronized void clear() {
	sEntities.evictAll();
	Log.v("Cache cleared.");
}
 
Example 6
Source File: Cache.java    From mobile-android-survey-app with MIT License 4 votes vote down vote up
public static synchronized void clear() {
	sEntities.evictAll();
	Log.v("Cache cleared.");
}