So I have an Activity which has a Static Array list of Array list of Strings which is accessed by the next activity. Now I don't want the next activity to be able to come back to this activity. Will finishing this activity get rid of that array list? If yes then please suggest a solution.
Asked
Active
Viewed 546 times
0
-
no. Static data may be deleted by system. – Divyesh Patel May 01 '17 at 07:00
-
3Try to understand the static objects behavior in Android from here: http://stackoverflow.com/a/1944564/1739882 – Chintan Soni May 01 '17 at 07:04
1 Answers
1
A possible solution is to create another class with static fields to hold data, these fields can be access through any other class to read/update

Denny
- 1,766
- 3
- 17
- 37