In my app,when the user first get in , he can add two dates and the app makes a days calculation.Then,this result writes to a database and also prints in a textView in my main Activity(called arxiki.class).I would like the app to remember this result and print it every time the user goes to the main activity.
As i have make it,every time that the user changes activity or close the app,the next time the app ask him again to enter dates and creates a new data in my database.How can i get always the first result?thanks
my code for saving the date result is :
DbXronia entry_add = new DbXronia(arxiki.this);
entry_add.open();
entry_add.createEntry_xronia(meres);
entry_add.close();