Yes. This data will stay in memory for as long as the process is alive.
2011/6/20 Droid <[email protected]>
> I am storing an ArrayList in a static variable in an ordinary (non
> activity) java class.
> It works correctly when I load it from an activity, but will it be
> guaranteed to remain
> in memory even when my activity is not calling it often?
>
> Here is the class:
>
> package com.maps.spoken;
>
> import java.util.ArrayList;
>
> public class NoWordRepeats {
>
> public static ArrayList<String> ar = new ArrayList<String>();
>
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en