1

My boolean keeps getting changed from false to true out of nowhere

view story
linux-howto

http://stackoverflow.com – Somewhere in between the onCreate() and onPause() method, my changePage boolean gets changed from false to true without invoking any changes to it systematically. Once the onCreate() method is called, I press the home button which triggers the onPause() method and suddenly the boolean is changed to true. What is going on? public class Menu extends Activity{ @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.menu); Global.changePage=false; Global.snd = MediaPlayer.create(getApplicationContext(), R.raw.bgm (HowTos)