Using firebase and deleting realm objectsIterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loopStrange out of memory issue while loading an image to a Bitmap objectSort ArrayList of custom Objects by propertyHow to store and view images on firebase?Query based on multiple where clauses in FirebaseHow to find my realm file?Get children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled methodHow to get the data saved in a USER_ID?
Using wilcox.test() and t.test() in R yielding different p-values
TeX Gyre Pagella Math Integral sign much too small
Do Monks gain the 9th level Unarmored Movement benefit when wearing armor or using a shield?
Not taking the bishop with the knight, why?
Does STATISTICS IO output include Version Store reads?
Is it safe to keep the GPU on 100% utilization for a very long time?
How can I make parentheses stick to formula?
Why did Missandei say this?
A Latin text with dependency tree
Why do unstable nuclei form?
Are there vaccine ingredients which may not be disclosed ("hidden", "trade secret", or similar)?
What is the Ancient One's mistake?
Can I use a 11-23 11-speed shimano cassette with the RD-R8000 11-speed Ultegra Shadow Rear Derailleur (short cage)?
What can cause an unfrozen indoor copper drain pipe to crack?
Are wands in any sort of book going to be too much like Harry Potter?
What is the status of the three crises in the history of mathematics?
Gift for mentor after his thesis defense?
Why do the Avengers care about returning these items in Endgame?
if i accidentally leaked my schools ip address and someone d doses my school am i at fault
Has everyone forgotten about wildfire?
How can I test a shell script in a "safe environment" to avoid harm to my computer?
Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?
Integral with DiracDelta. Can Mathematica be made to solve this?
Why does the electron wavefunction not collapse within atoms at room temperature in gas, liquids or solids due to decoherence?
Using firebase and deleting realm objects
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loopStrange out of memory issue while loading an image to a Bitmap objectSort ArrayList of custom Objects by propertyHow to store and view images on firebase?Query based on multiple where clauses in FirebaseHow to find my realm file?Get children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled methodHow to get the data saved in a USER_ID?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a function where I initialize all the data from firebase, also i make them availiable for real DB ,but when the data are updated, i want to delete all data from realm and save the new ones, when i try to do that it crashes because onDataChange tries to perform an action on a deleted object
public void initSettings()
TextView tv = findViewById(R.id.updateInfo);
tv.setText(updateValue);
Button bu = findViewById(R.id.updateB);
bu.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
clearRealm();
initRealmData();
);
public void initRealmData()
RealmResults<ChapterInfo> realmChapter = realm.where(ChapterInfo.class).findAll();
RealmResults<ArticleInfo> realmArticle = realm.where(ArticleInfo.class).findAll();
RealmResults<SectionInfo> realmSection = realm.where(SectionInfo.class).findAll();
if(realmChapter.size() > 0)
ciA.addAll(realmChapter);
siA.addAll(realmSection);
aiA.addAll(realmArticle);
Collections.sort(siA);
Collections.sort(aiA);
Collections.sort(ciA);
System.out.print("ADDING DATA FROM REALM");
else
System.out.println("DEN EXEI DATA TO REALM");
initData();
public void clearRealm()
for(int i =0 ; i <ciA.size();i++) ciA.remove(i);
for(int i =0 ; i <siA.size();i++) siA.remove(i);
for(int i =0 ; i <aiA.size();i++) aiA.remove(i);
realm.beginTransaction();
RealmResults<ChapterInfo> ci = realm.where(ChapterInfo.class).findAll();
if(ci.size() >0)
ci.deleteAllFromRealm();
RealmResults<ArticleInfo> ai = realm.where(ArticleInfo.class).findAll();
if(ai.size()>0)
ai.deleteAllFromRealm();
RealmResults<SectionInfo> si = realm.where(SectionInfo.class).findAll();
if(si.size() > 0)
si.deleteAllFromRealm();
realm.commitTransaction();
public void initData()
setContentView(R.layout.activity_main);
pb = findViewById(R.id.progressBar);
pb.setVisibility(View.VISIBLE);
DatabaseReference myRef2 = FirebaseDatabase.getInstance().getReference();
myRef2.addListenerForSingleValueEvent(new ValueEventListener()
@Override
public void onDataChange(DataSnapshot snapshot)
for(DataSnapshot ds : snapshot.child("sections").getChildren())
String key = ds.getKey();
SectionInfo siTmp = new SectionInfo();
siTmp.setTitle(snapshot.child("sections").child(key).getValue(SectionInfo.class).getTitle());
siTmp.setOrder(snapshot.child("sections").child(key).getValue(SectionInfo.class).getOrder());
siTmp.setKey(key);
//siA.add(siTmp);
realm.beginTransaction();
final SectionInfo siR = realm.createObject(SectionInfo.class);
siR.setKey(siTmp.getKey());
siR.setTitle(siTmp.getTitle());
siR.setOrder(siTmp.getOrder());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("chapters").getChildren())
String key = ds.getKey();
ChapterInfo ciTmp = new ChapterInfo();
ciTmp.setTitle(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getTitle());
ciTmp.setOrder(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getOrder());
ciTmp.setSection(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getSection());
ciTmp.setKey(key);
//ciA.add(ciTmp);
realm.beginTransaction();
final ChapterInfo ciR = realm.createObject(ChapterInfo.class);
ciR.setKey(key);
ciR.setTitle(ciTmp.getTitle());
ciR.setOrder(ciTmp.getOrder());
ciR.setSection(ciTmp.getSection());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("articles").getChildren())
String key = ds.getKey();
ArticleInfo aiTmp = new ArticleInfo();
aiTmp.setTitle(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getTitle());
aiTmp.setOrder(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getOrder());
aiTmp.setChapter(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getChapter());
aiTmp.setKey(key);
//aiA.add(aiTmp);
realm.beginTransaction();
final ArticleInfo aiR = realm.createObject(ArticleInfo.class);
aiR.setTitle(aiTmp.getTitle());
aiR.setOrder(aiTmp.getOrder());
aiR.setChapter(aiTmp.getChapter());
aiR.setKey(key);
realm.commitTransaction();
pb.setVisibility(View.GONE);
codeCreated();
@Override
public void onCancelled(DatabaseError databaseError)
);
java android firebase firebase-realtime-database realm
add a comment |
I have a function where I initialize all the data from firebase, also i make them availiable for real DB ,but when the data are updated, i want to delete all data from realm and save the new ones, when i try to do that it crashes because onDataChange tries to perform an action on a deleted object
public void initSettings()
TextView tv = findViewById(R.id.updateInfo);
tv.setText(updateValue);
Button bu = findViewById(R.id.updateB);
bu.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
clearRealm();
initRealmData();
);
public void initRealmData()
RealmResults<ChapterInfo> realmChapter = realm.where(ChapterInfo.class).findAll();
RealmResults<ArticleInfo> realmArticle = realm.where(ArticleInfo.class).findAll();
RealmResults<SectionInfo> realmSection = realm.where(SectionInfo.class).findAll();
if(realmChapter.size() > 0)
ciA.addAll(realmChapter);
siA.addAll(realmSection);
aiA.addAll(realmArticle);
Collections.sort(siA);
Collections.sort(aiA);
Collections.sort(ciA);
System.out.print("ADDING DATA FROM REALM");
else
System.out.println("DEN EXEI DATA TO REALM");
initData();
public void clearRealm()
for(int i =0 ; i <ciA.size();i++) ciA.remove(i);
for(int i =0 ; i <siA.size();i++) siA.remove(i);
for(int i =0 ; i <aiA.size();i++) aiA.remove(i);
realm.beginTransaction();
RealmResults<ChapterInfo> ci = realm.where(ChapterInfo.class).findAll();
if(ci.size() >0)
ci.deleteAllFromRealm();
RealmResults<ArticleInfo> ai = realm.where(ArticleInfo.class).findAll();
if(ai.size()>0)
ai.deleteAllFromRealm();
RealmResults<SectionInfo> si = realm.where(SectionInfo.class).findAll();
if(si.size() > 0)
si.deleteAllFromRealm();
realm.commitTransaction();
public void initData()
setContentView(R.layout.activity_main);
pb = findViewById(R.id.progressBar);
pb.setVisibility(View.VISIBLE);
DatabaseReference myRef2 = FirebaseDatabase.getInstance().getReference();
myRef2.addListenerForSingleValueEvent(new ValueEventListener()
@Override
public void onDataChange(DataSnapshot snapshot)
for(DataSnapshot ds : snapshot.child("sections").getChildren())
String key = ds.getKey();
SectionInfo siTmp = new SectionInfo();
siTmp.setTitle(snapshot.child("sections").child(key).getValue(SectionInfo.class).getTitle());
siTmp.setOrder(snapshot.child("sections").child(key).getValue(SectionInfo.class).getOrder());
siTmp.setKey(key);
//siA.add(siTmp);
realm.beginTransaction();
final SectionInfo siR = realm.createObject(SectionInfo.class);
siR.setKey(siTmp.getKey());
siR.setTitle(siTmp.getTitle());
siR.setOrder(siTmp.getOrder());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("chapters").getChildren())
String key = ds.getKey();
ChapterInfo ciTmp = new ChapterInfo();
ciTmp.setTitle(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getTitle());
ciTmp.setOrder(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getOrder());
ciTmp.setSection(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getSection());
ciTmp.setKey(key);
//ciA.add(ciTmp);
realm.beginTransaction();
final ChapterInfo ciR = realm.createObject(ChapterInfo.class);
ciR.setKey(key);
ciR.setTitle(ciTmp.getTitle());
ciR.setOrder(ciTmp.getOrder());
ciR.setSection(ciTmp.getSection());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("articles").getChildren())
String key = ds.getKey();
ArticleInfo aiTmp = new ArticleInfo();
aiTmp.setTitle(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getTitle());
aiTmp.setOrder(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getOrder());
aiTmp.setChapter(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getChapter());
aiTmp.setKey(key);
//aiA.add(aiTmp);
realm.beginTransaction();
final ArticleInfo aiR = realm.createObject(ArticleInfo.class);
aiR.setTitle(aiTmp.getTitle());
aiR.setOrder(aiTmp.getOrder());
aiR.setChapter(aiTmp.getChapter());
aiR.setKey(key);
realm.commitTransaction();
pb.setVisibility(View.GONE);
codeCreated();
@Override
public void onCancelled(DatabaseError databaseError)
);
java android firebase firebase-realtime-database realm
jni: ThrowingException 8, Object is no longer valid to operate on. Was it deleted by another thread?, . Exception has been thrown: Object is no longer valid to operate on. Was it deleted by another thread?
– Νίκος Δημητρακόπουλος
Mar 23 at 9:49
add a comment |
I have a function where I initialize all the data from firebase, also i make them availiable for real DB ,but when the data are updated, i want to delete all data from realm and save the new ones, when i try to do that it crashes because onDataChange tries to perform an action on a deleted object
public void initSettings()
TextView tv = findViewById(R.id.updateInfo);
tv.setText(updateValue);
Button bu = findViewById(R.id.updateB);
bu.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
clearRealm();
initRealmData();
);
public void initRealmData()
RealmResults<ChapterInfo> realmChapter = realm.where(ChapterInfo.class).findAll();
RealmResults<ArticleInfo> realmArticle = realm.where(ArticleInfo.class).findAll();
RealmResults<SectionInfo> realmSection = realm.where(SectionInfo.class).findAll();
if(realmChapter.size() > 0)
ciA.addAll(realmChapter);
siA.addAll(realmSection);
aiA.addAll(realmArticle);
Collections.sort(siA);
Collections.sort(aiA);
Collections.sort(ciA);
System.out.print("ADDING DATA FROM REALM");
else
System.out.println("DEN EXEI DATA TO REALM");
initData();
public void clearRealm()
for(int i =0 ; i <ciA.size();i++) ciA.remove(i);
for(int i =0 ; i <siA.size();i++) siA.remove(i);
for(int i =0 ; i <aiA.size();i++) aiA.remove(i);
realm.beginTransaction();
RealmResults<ChapterInfo> ci = realm.where(ChapterInfo.class).findAll();
if(ci.size() >0)
ci.deleteAllFromRealm();
RealmResults<ArticleInfo> ai = realm.where(ArticleInfo.class).findAll();
if(ai.size()>0)
ai.deleteAllFromRealm();
RealmResults<SectionInfo> si = realm.where(SectionInfo.class).findAll();
if(si.size() > 0)
si.deleteAllFromRealm();
realm.commitTransaction();
public void initData()
setContentView(R.layout.activity_main);
pb = findViewById(R.id.progressBar);
pb.setVisibility(View.VISIBLE);
DatabaseReference myRef2 = FirebaseDatabase.getInstance().getReference();
myRef2.addListenerForSingleValueEvent(new ValueEventListener()
@Override
public void onDataChange(DataSnapshot snapshot)
for(DataSnapshot ds : snapshot.child("sections").getChildren())
String key = ds.getKey();
SectionInfo siTmp = new SectionInfo();
siTmp.setTitle(snapshot.child("sections").child(key).getValue(SectionInfo.class).getTitle());
siTmp.setOrder(snapshot.child("sections").child(key).getValue(SectionInfo.class).getOrder());
siTmp.setKey(key);
//siA.add(siTmp);
realm.beginTransaction();
final SectionInfo siR = realm.createObject(SectionInfo.class);
siR.setKey(siTmp.getKey());
siR.setTitle(siTmp.getTitle());
siR.setOrder(siTmp.getOrder());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("chapters").getChildren())
String key = ds.getKey();
ChapterInfo ciTmp = new ChapterInfo();
ciTmp.setTitle(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getTitle());
ciTmp.setOrder(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getOrder());
ciTmp.setSection(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getSection());
ciTmp.setKey(key);
//ciA.add(ciTmp);
realm.beginTransaction();
final ChapterInfo ciR = realm.createObject(ChapterInfo.class);
ciR.setKey(key);
ciR.setTitle(ciTmp.getTitle());
ciR.setOrder(ciTmp.getOrder());
ciR.setSection(ciTmp.getSection());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("articles").getChildren())
String key = ds.getKey();
ArticleInfo aiTmp = new ArticleInfo();
aiTmp.setTitle(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getTitle());
aiTmp.setOrder(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getOrder());
aiTmp.setChapter(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getChapter());
aiTmp.setKey(key);
//aiA.add(aiTmp);
realm.beginTransaction();
final ArticleInfo aiR = realm.createObject(ArticleInfo.class);
aiR.setTitle(aiTmp.getTitle());
aiR.setOrder(aiTmp.getOrder());
aiR.setChapter(aiTmp.getChapter());
aiR.setKey(key);
realm.commitTransaction();
pb.setVisibility(View.GONE);
codeCreated();
@Override
public void onCancelled(DatabaseError databaseError)
);
java android firebase firebase-realtime-database realm
I have a function where I initialize all the data from firebase, also i make them availiable for real DB ,but when the data are updated, i want to delete all data from realm and save the new ones, when i try to do that it crashes because onDataChange tries to perform an action on a deleted object
public void initSettings()
TextView tv = findViewById(R.id.updateInfo);
tv.setText(updateValue);
Button bu = findViewById(R.id.updateB);
bu.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
clearRealm();
initRealmData();
);
public void initRealmData()
RealmResults<ChapterInfo> realmChapter = realm.where(ChapterInfo.class).findAll();
RealmResults<ArticleInfo> realmArticle = realm.where(ArticleInfo.class).findAll();
RealmResults<SectionInfo> realmSection = realm.where(SectionInfo.class).findAll();
if(realmChapter.size() > 0)
ciA.addAll(realmChapter);
siA.addAll(realmSection);
aiA.addAll(realmArticle);
Collections.sort(siA);
Collections.sort(aiA);
Collections.sort(ciA);
System.out.print("ADDING DATA FROM REALM");
else
System.out.println("DEN EXEI DATA TO REALM");
initData();
public void clearRealm()
for(int i =0 ; i <ciA.size();i++) ciA.remove(i);
for(int i =0 ; i <siA.size();i++) siA.remove(i);
for(int i =0 ; i <aiA.size();i++) aiA.remove(i);
realm.beginTransaction();
RealmResults<ChapterInfo> ci = realm.where(ChapterInfo.class).findAll();
if(ci.size() >0)
ci.deleteAllFromRealm();
RealmResults<ArticleInfo> ai = realm.where(ArticleInfo.class).findAll();
if(ai.size()>0)
ai.deleteAllFromRealm();
RealmResults<SectionInfo> si = realm.where(SectionInfo.class).findAll();
if(si.size() > 0)
si.deleteAllFromRealm();
realm.commitTransaction();
public void initData()
setContentView(R.layout.activity_main);
pb = findViewById(R.id.progressBar);
pb.setVisibility(View.VISIBLE);
DatabaseReference myRef2 = FirebaseDatabase.getInstance().getReference();
myRef2.addListenerForSingleValueEvent(new ValueEventListener()
@Override
public void onDataChange(DataSnapshot snapshot)
for(DataSnapshot ds : snapshot.child("sections").getChildren())
String key = ds.getKey();
SectionInfo siTmp = new SectionInfo();
siTmp.setTitle(snapshot.child("sections").child(key).getValue(SectionInfo.class).getTitle());
siTmp.setOrder(snapshot.child("sections").child(key).getValue(SectionInfo.class).getOrder());
siTmp.setKey(key);
//siA.add(siTmp);
realm.beginTransaction();
final SectionInfo siR = realm.createObject(SectionInfo.class);
siR.setKey(siTmp.getKey());
siR.setTitle(siTmp.getTitle());
siR.setOrder(siTmp.getOrder());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("chapters").getChildren())
String key = ds.getKey();
ChapterInfo ciTmp = new ChapterInfo();
ciTmp.setTitle(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getTitle());
ciTmp.setOrder(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getOrder());
ciTmp.setSection(snapshot.child("chapters").child(key).getValue(ChapterInfo.class).getSection());
ciTmp.setKey(key);
//ciA.add(ciTmp);
realm.beginTransaction();
final ChapterInfo ciR = realm.createObject(ChapterInfo.class);
ciR.setKey(key);
ciR.setTitle(ciTmp.getTitle());
ciR.setOrder(ciTmp.getOrder());
ciR.setSection(ciTmp.getSection());
realm.commitTransaction();
for(DataSnapshot ds : snapshot.child("articles").getChildren())
String key = ds.getKey();
ArticleInfo aiTmp = new ArticleInfo();
aiTmp.setTitle(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getTitle());
aiTmp.setOrder(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getOrder());
aiTmp.setChapter(snapshot.child("articles").child(key).getValue(ArticleInfo.class).getChapter());
aiTmp.setKey(key);
//aiA.add(aiTmp);
realm.beginTransaction();
final ArticleInfo aiR = realm.createObject(ArticleInfo.class);
aiR.setTitle(aiTmp.getTitle());
aiR.setOrder(aiTmp.getOrder());
aiR.setChapter(aiTmp.getChapter());
aiR.setKey(key);
realm.commitTransaction();
pb.setVisibility(View.GONE);
codeCreated();
@Override
public void onCancelled(DatabaseError databaseError)
);
java android firebase firebase-realtime-database realm
java android firebase firebase-realtime-database realm
edited Mar 23 at 14:33
Tiw
4,39761830
4,39761830
asked Mar 23 at 9:05
Νίκος ΔημητρακόπουλοςΝίκος Δημητρακόπουλος
12
12
jni: ThrowingException 8, Object is no longer valid to operate on. Was it deleted by another thread?, . Exception has been thrown: Object is no longer valid to operate on. Was it deleted by another thread?
– Νίκος Δημητρακόπουλος
Mar 23 at 9:49
add a comment |
jni: ThrowingException 8, Object is no longer valid to operate on. Was it deleted by another thread?, . Exception has been thrown: Object is no longer valid to operate on. Was it deleted by another thread?
– Νίκος Δημητρακόπουλος
Mar 23 at 9:49
jni: ThrowingException 8, Object is no longer valid to operate on. Was it deleted by another thread?, . Exception has been thrown: Object is no longer valid to operate on. Was it deleted by another thread?
– Νίκος Δημητρακόπουλος
Mar 23 at 9:49
jni: ThrowingException 8, Object is no longer valid to operate on. Was it deleted by another thread?, . Exception has been thrown: Object is no longer valid to operate on. Was it deleted by another thread?
– Νίκος Δημητρακόπουλος
Mar 23 at 9:49
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55312193%2fusing-firebase-and-deleting-realm-objects%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55312193%2fusing-firebase-and-deleting-realm-objects%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
jni: ThrowingException 8, Object is no longer valid to operate on. Was it deleted by another thread?, . Exception has been thrown: Object is no longer valid to operate on. Was it deleted by another thread?
– Νίκος Δημητρακόπουλος
Mar 23 at 9:49