A Rogue Otaku
A Rogue Otaku

Reputation: 923

Accessing static variable of a finished activity.(Android)

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.

Upvotes: 0

Views: 547

Answers (1)

Denny
Denny

Reputation: 1783

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

Upvotes: 1

Related Questions