3

I am using getLastNonConfigurationInstance() to save object while changing orientation in my activity. now it is deprecated. What is the best way of alternative? the documentation says "use Fragment". But i need to use activity.

Dinesh T A
  • 2,087
  • 4
  • 26
  • 34
  • Does this answer your question? [How can I save an activity state using the save instance state?](https://stackoverflow.com/questions/151777/how-can-i-save-an-activity-state-using-the-save-instance-state) – General Grievance Aug 30 '22 at 20:46

0 Answers0