When my users play a game, I want to lock them out of it for 30 seconds. I'm trying to use SharedPreferences
. I'm not well acquainted with SP and not completely sure how to use it. So it should look like so
ifGameOver(){
//lock the game for 30 seconds
//send users to main menu until 30seconds is over
}
and then at the main menu I wish to be able to see a TextView count down as the 30 seconds go down. So here I would getLong
or something(?). Could anyone shed any light on this?