Hi All,
I am in the middle of making an app at the moment. Its a card game where the user plays the game by pressing a button on screen and a random card is displayed.
Each card can only be displayed once. Image references are stored in an int array.
I have this functionality working but now I want to know how I can handle events like if a phone call comes while the app is open.
Im not sure if I need the onpause/onresume methods?
When the app starts in the oncreate method I initialise a lot of variables etc and then call a method to set up click listeners. then when the user presses a button on screen the first/next card is pulled.
In the emulator at the moment when I press the home button in the middle of the game and then go back into the app it is still at the same card and the user can just continue so im not sure if i need to use onpause/resume methods.
Any advice?
Thanks
I am in the middle of making an app at the moment. Its a card game where the user plays the game by pressing a button on screen and a random card is displayed.
Each card can only be displayed once. Image references are stored in an int array.
I have this functionality working but now I want to know how I can handle events like if a phone call comes while the app is open.
Im not sure if I need the onpause/onresume methods?
When the app starts in the oncreate method I initialise a lot of variables etc and then call a method to set up click listeners. then when the user presses a button on screen the first/next card is pulled.
In the emulator at the moment when I press the home button in the middle of the game and then go back into the app it is still at the same card and the user can just continue so im not sure if i need to use onpause/resume methods.
Any advice?
Thanks