I figured out a little bit about Android's life cycle.
So even static variables can be lost if OS faces with a shortage of resource, right? (Android static variables are lost)
E.g., the static final String
variable like
public static final String OPTION = "option";
can be lost when the app is paused.
Then how can I declare constants which can be accessed all the time through the app's life cycle besides using 'strings.xml' because I cannot statically access the file.
Is it possible to declare constant variables whose value is always kept?