The code below I have issue,
I have more than one class, in example2 class have static boolean var
public class example2 extends Activity {
public static boolean var = false;
}
In example1 have static variable reference from example2.
public class example1 extends Activity {
public void onResume() {
super.onResume();
example2.var = false;
}
}
Bug: Write to static field com.example.example2.fromVar from instance method com.example.example2.onResume()
How to resolve this one...