Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between persistent and non-persistent data

onPause() should be used to save persistent data and onSaveInstanceState(Bundle) is typically used to save non-persistent data.What does that mean?What is difference between persistent and non-persistent data?

like image 517
user3684678 Avatar asked Feb 18 '16 08:02

user3684678


1 Answers

Persistence data:
The data which is available after fully closing the application. This type of data must be save into shared preference or database or internal or external memory

Non- persistence data:
The data which is not available after fully closing the application. we can say that non - persistence data mean volatile data that available during the execution of the application.

like image 137
Faisal shahzad Avatar answered Sep 24 '22 12:09

Faisal shahzad