How to store parseObject locally as well as in parse Cloud using parse sdk android

I include local data storage:

Parse.enableLocalDatastore(mContext);
Parse.initialize(mContext, PARSE_APP_ID, PARSE_CLIENT_KEY);

      

and now I am trying to save changes to the current parseUser in the local database as well as in Parse Cloud

mParseUser.put(DBConstants.KEY_TAKEPICEVERY, takePicEvery);

//Save in local database
mParseUser.pinInBackground(new SaveCallback() {
  @Override
  public void done(ParseException e) {
    //try to save in Parse Cloud
    if(e==null)
      mParseUser.saveEventually(new SaveCallback() {        
        @Override
        public void done(ParseException e1) {
          Log.e("Save Done:", "="+e1);
        }
      });
  }
});

      

saveEventually

never stores updated information in the analysis cloud, doesn't even work saveInBackground

.

+3
android parse.com


source to share


No one has answered this question yet

Check out similar questions:

3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
2510
How to persist android activity state by persisting instance state?
1270
How to pass data between activities in an Android app?
1116
Android SDK installation not finding JDK
1002
How do I display an alert dialog on Android?
960
How to rotate the screen of Android emulator?
831
How to manage startActivityForResult on Android?
1
saveEventually doesn't work with DefaultACL
0
objectId in Parse is null even though there is no ParseException, storing the object in the Parse cloud
0
Parse elements override when using Local Datastore



All Articles
Loading...
X
Show
Funny
Dev
Pics