I launch an activity passing a parseobject to next activity
In next activity i make a query and save the list of objects as class field variable. I change some fields of the objects from query result. eg object.putint("abc",122); // I change it from 100 to 122
I DONT call save() or any similar method on these modified objects.
Now i finish the second activity with back button and go back to first activity.
I again launch the second activity as before
The query is made and list of objects is fetched. Not the returned objects have different values as of server. object.getInt("abc") returns 122, not 100 100 is expected value as new query has been made on activity created and the modified parseobject from last time was not saved. But the modified value of parseobject is still saved locally even after activity destroyed.
To verify in ondestroy of second activity i set the object value to 9999 and after relaunching that activity and making the query the value returned in network log (100) does not match value printed later via log.
Field is not static and localdatastore is not in use.
EDIT:
Activity 1:
...
intent.putExtra("obj",myOrderParseObject);
startActivity...
Activity 2:
...
somequery.whereEqualTo("someField",getIntent.get...("obj");
List<Type2ParseObject> result = somequery.find();
...
result.get(0).getInt("myvalue") //return 100
result.get(0).put("myvalue",50)
finish();
Back to Activity 1:
...
intent.putExtra("obj",myOrderParseObject);
startActivity... //Again start activity
Activity 2:
//Again the same query
...
somequery.whereEqualTo("someField",getIntent.get...("obj");
List<Type2ParseObject> result = somequery.find();
...
result.get(0).getInt("myvalue") //returns 50 not 100!!!
I expected 100 as it is original server value but i got 50 which i put last time but not called any save() method.
How did the value persisted even after activity crash>