src/jpm/dg/HomeScreen.java
/**
	 * Loads shared preferences from a file.
	 */
Loads shared preferences from a file.
Loads shared preferences from a file .
private void loadPreferences() {
		SharedPreferences sharedPreferences = getSharedPreferences(PREFS_NAME,
				MODE_PRIVATE);
		boolean isFirstLoad = sharedPreferences.getBoolean(FIRST_LOAD, true);
		if (isFirstLoad) {
			Dialogs.showBasicDialog(this, "Is this your first time?",
					getString(R.string.app_summary));
			SharedPreferences.Editor editor = sharedPreferences.edit();
			editor.putBoolean(FIRST_LOAD, false);
			editor.commit();
		}
	}
private void loadPreferences ( ) { SharedPreferences sharedPreferences = getSharedPreferences ( PREFS_NAME , MODE_PRIVATE ) ; boolean isFirstLoad = sharedPreferences . getBoolean ( FIRST_LOAD , true ) ; if ( isFirstLoad ) { Dialogs . showBasicDialog ( this , "Is this your first time?" , getString ( R . string . app_summary ) ) ; SharedPreferences . Editor editor = sharedPreferences . edit ( ) ; editor . putBoolean ( FIRST_LOAD , false ) ; editor . commit ( ) ; } }
Loads shared preferences from a file.
Loads shared preferences from a file .
// If it is the first time a user has launched the app then // show an instructions dialog.