Skip to content

Instantly share code, notes, and snippets.

@OldMetalmind
Created August 21, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OldMetalmind/e2553557ab0189200706 to your computer and use it in GitHub Desktop.
Save OldMetalmind/e2553557ab0189200706 to your computer and use it in GitHub Desktop.
if(_exitApp)
{
finish();
}
else
{
_exitApp = true;
showMessage( FPFContext.getInstance().getResourceManager().getString( R.string.click_to_exit ) );
final Handler handler = new Handler();
final Runnable r = new Runnable()
{
public void run()
{
_exitApp = false;
}
};
handler.postDelayed( r, 3000 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment