Children in firebase are deleted after I close the app, how to let the data stay?2019 Community Moderator ElectionStrange out of memory issue while loading an image to a Bitmap objectFling gesture detection on grid layoutHow do I pass data between Activities in Android application?Can't start Eclipse - Java was started but returned exit code=13How to delete/remove nodes on FirebaseAndroid ListView Deletion when data is deleted at firebaseHow to delete current app from project in Firebase?How to handle notification when app in background in FirebaseDeleting Firebase data after a certain timeHow to delete firebase child after app is deleted?

Second-rate spelling

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

Difference between 'stomach' and 'uterus'

What is a term for a function that when called repeatedly, has the same effect as calling once?

What is the difference between ashamed and shamed?

What type of postprocessing gives the effect of people standing out

Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?

What if I store 10TB on azure servers and then keep the vm powered off?

Is there a German word for “analytics”?

Where was Karl Mordo in Infinity War?

Manipulate scientific format without the "e"

When was drinking water recognized as crucial in marathon running?

How to speed up a process

What to do when being responsible for data protection in your lab, yet advice is ignored?

What are all the squawk codes?

Equivalent to "source" in OpenBSD?

How to approximate rolls for potions of healing using only d6's?

Magento 2: Override XML file from vendor folder to app folder doesn't work/update

Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?

Use comma instead of & in table

Real life puzzle: Unknown alphabet or shorthand

Why is working on the same position for more than 15 years not a red flag?

In the comics Did Thanos "kill" just sentient beings or all creatures with the snap?



Children in firebase are deleted after I close the app, how to let the data stay?



2019 Community Moderator ElectionStrange out of memory issue while loading an image to a Bitmap objectFling gesture detection on grid layoutHow do I pass data between Activities in Android application?Can't start Eclipse - Java was started but returned exit code=13How to delete/remove nodes on FirebaseAndroid ListView Deletion when data is deleted at firebaseHow to delete current app from project in Firebase?How to handle notification when app in background in FirebaseDeleting Firebase data after a certain timeHow to delete firebase child after app is deleted?










0















Here's how I put value in firebase:



 exDBKey1 = exerciseList.get(position).getExerciseId();
exerciseName = exerciseList.get(position).getExerciseName();
weekExerciseModel = new WeekExerciseModel(exerciseName, exDBKey1);


executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek)
.child(exerciseDay).push().setValue(weekExerciseModel);


Here's my firebase which gets deleted after I re-open the app:



enter image description here










share|improve this question
























  • This code is okay or instead of giving value dynamically please try it once using static values. executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek) .child("exerciseday").push().setValue("weekExerciseModel"); If your data is still getting deleted then please upload more code to SO.

    – Rajat Mittal
    17 mins ago
















0















Here's how I put value in firebase:



 exDBKey1 = exerciseList.get(position).getExerciseId();
exerciseName = exerciseList.get(position).getExerciseName();
weekExerciseModel = new WeekExerciseModel(exerciseName, exDBKey1);


executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek)
.child(exerciseDay).push().setValue(weekExerciseModel);


Here's my firebase which gets deleted after I re-open the app:



enter image description here










share|improve this question
























  • This code is okay or instead of giving value dynamically please try it once using static values. executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek) .child("exerciseday").push().setValue("weekExerciseModel"); If your data is still getting deleted then please upload more code to SO.

    – Rajat Mittal
    17 mins ago














0












0








0








Here's how I put value in firebase:



 exDBKey1 = exerciseList.get(position).getExerciseId();
exerciseName = exerciseList.get(position).getExerciseName();
weekExerciseModel = new WeekExerciseModel(exerciseName, exDBKey1);


executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek)
.child(exerciseDay).push().setValue(weekExerciseModel);


Here's my firebase which gets deleted after I re-open the app:



enter image description here










share|improve this question
















Here's how I put value in firebase:



 exDBKey1 = exerciseList.get(position).getExerciseId();
exerciseName = exerciseList.get(position).getExerciseName();
weekExerciseModel = new WeekExerciseModel(exerciseName, exDBKey1);


executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek)
.child(exerciseDay).push().setValue(weekExerciseModel);


Here's my firebase which gets deleted after I re-open the app:



enter image description here







android firebase firebase-realtime-database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 32 secs ago







Android Girl

















asked 26 mins ago









Android GirlAndroid Girl

105




105












  • This code is okay or instead of giving value dynamically please try it once using static values. executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek) .child("exerciseday").push().setValue("weekExerciseModel"); If your data is still getting deleted then please upload more code to SO.

    – Rajat Mittal
    17 mins ago


















  • This code is okay or instead of giving value dynamically please try it once using static values. executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek) .child("exerciseday").push().setValue("weekExerciseModel"); If your data is still getting deleted then please upload more code to SO.

    – Rajat Mittal
    17 mins ago

















This code is okay or instead of giving value dynamically please try it once using static values. executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek) .child("exerciseday").push().setValue("weekExerciseModel"); If your data is still getting deleted then please upload more code to SO.

– Rajat Mittal
17 mins ago






This code is okay or instead of giving value dynamically please try it once using static values. executedExercises.child(userID).child("WeeklyExercises").child(exerciseWeek) .child("exerciseday").push().setValue("weekExerciseModel"); If your data is still getting deleted then please upload more code to SO.

– Rajat Mittal
17 mins ago













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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55001630%2fchildren-in-firebase-are-deleted-after-i-close-the-app-how-to-let-the-data-stay%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















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55001630%2fchildren-in-firebase-are-deleted-after-i-close-the-app-how-to-let-the-data-stay%23new-answer', 'question_page');

);

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







這個網誌中的熱門文章

Runtime problems in TestNG asserts2019 Community Moderator ElectionHow do you assert that a certain exception is thrown in JUnit 4 tests?differences between 2 JUnit Assert classesHow do I use Assert to verify that an exception has been thrown?Best practice for Python assertWhat is the “assert” function?What does the Java assert keyword do, and when should it be used?What is the use of “assert” in Python?PHPUnit assert that an exception was thrown?What is “assert” in JavaScript?Asserting in testng using containing

(unchecked) unchecked cast required: OnSuccessListener found: Uri2019 Community Moderator ElectionHow do I address unchecked cast warnings?Android AlarmManager for periodical sensor readingWhy don't Java's +=, -=, *=, /= compound assignment operators require casting?I am trying to set alarm on specific time using alarm manager but alarm initiated instantly?setText on button from another activity androidget around of error 'can not resolve symbol'Saving ToggleButton state in ListView by using SharedPreferencesAdding Social Media Share Logic From Firebase in Androidjava.lang.NullPointerException when invoking onLoadFinished()Search Firestore query don't show data in RecycleView

1