public void setPreferences(Settings preferences) {
this.preferences = preferences;
// this.MJD0h = getMJD0h();
this.position = new EarthPosition(Settings.locationPrefer.getLatitude(), Settings.locationPrefer.getLongitude());
magVar=getMagneticDeclination(getMJD0h() );
mSunMoonPosition=new SunMoonPosition (position);
this.setFullScreenMode(Settings.optionPref.getIsFullScreen());
this.isMilitary = Settings.optionPref.getIsMilitary();
setFontSize(Settings.optionPref.getFontSize());