Welcome
Login
Sign up
Home
Solutions
Forums
How can we help you today?
Enter your search term here...
Search
Login
or
Signup
to submit a new ticket
Check ticket status
Start a new topic
Discussions
Kinvey Forums
Android
Offline storage parse error
f
fabreax
started a topic
about 6 years ago
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.
30 Comments
Oldest First
Popular
Newest First
Sorted by
Oldest First
f
fabreax
said
almost 6 years ago
I will make one call for each sort
« Previous
1
2
3
Next »
Login
or
Signup
to post a comment
More topics in
Android
Can I add KinveyReferences and other custom Arrays to the User entity?
How can I use custom enums within my Entity?
Linking an image does not save with LinkedData
How can I get all records saved by the current user?
Why don't all users see the same data when querying?
Retrieving related file from datastore collection - continued
Problem implementing sign up / login
Can Android API be used for Java?
I'm not receiving push notifications
It is impossible to receive object according to the link
See all 259 topics
fabreax
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.