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?
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:

add a comment |
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:

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
add a comment |
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:

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:

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
add a comment |
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
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%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
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%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
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

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