wordpress tutorial, seo guild

Personal Blog

[Android Tips] Check first run application

Created on

Boolean isFirst = getSharedPreferences("NAM", MODE_PRIVATE).getBoolean("isfirstrun", true);
if(isFirst) {
     Toast.makeText(this,"First", Toast.LENGTH_LONG).show();
     getSharedPreferences("NAM", MODE_PRIVATE).edit().putBoolean("isfirstrun",false).commit();
}

 

···

This is my blog about web development in general. I write about PHP (Wordpress, Laravel, etc), Ruby (Rails, Jekyll), NodeJS (Socket) and more. Be welcome and let your comment :-)

Comments

Be the First to Comment!

avatar
  Subscribe  
Notify of
Go to top