Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Created April 3, 2017 22:00
Show Gist options
  • Save cosbor11/ff4babbf29faec36a83f00405079b652 to your computer and use it in GitHub Desktop.
Save cosbor11/ff4babbf29faec36a83f00405079b652 to your computer and use it in GitHub Desktop.
Create a persistence manager factory
PersistenceManagerFactory persistenceManagerFactory = new CacheManagerFactory();
try {
persistenceManagerFactory.initialize();
} catch (InitializationException e) {
Log.e(TAG, "Cannot initialize Persistence Manager Factory");
}
PersistenceManager persistenceManager = persistenceManagerFactory.getPersistenceManager();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment