Start a new topic

Offline storage parse error

Hello,



I'm using the offline datastore but the sqlite storage is never used :



> trackDao.setCache(new InMemoryLRUCache(), CachePolicy.CACHEFIRST); // add memory caching



> trackDao.setOffline(OfflinePolicy.LOCAL_FIRST, new SqlLiteOfflineStore

(getActivity().getApplicationContext())); // add offline disk storage



> trackDao.get(query, new KinveyListCallback() {



> @Override



> public void onSuccess(Track[] tracks) {



> if(tracks == null) {



> onLoadingError();



> } else {



> // use of tracks here



> }



> }



If no connection is available, tracks == null (not using the offline sqlite datastore).



There is an IO exception shown in the stacktrace : http://demo.ovh.eu/download/628935c646a1667017f553ab1bdbf7f8/stacktrace.txt



@Damien , do I made a mistake ?



Thank you.

I will make one call for each sort

Login or Signup to post a comment