Hi All
I am working on halting a game when app is minimised.. I only know that puaseApp() gets called. I have a canvas class
MainScreenCanvas mainsScreen_view; // Global variable
protected void pauseApp() {
System.out.println("mainsc");
if(mainsScreen_view != null) {
System.out.println("i am inside if");
mainsScreen_view.pause_flag =1;
}
}
I am unable to enter inside the if loop. Even though i am in MainScreenCanvas.(has got instatiated)
Can anybody tell where I am wrong in my pauseApp code

Reply With Quote



