Code example for SharedPreferences.Editor: Saving app preferences

Methods: commit, putFloat

0
				this.textViewSD.setText("Callibration SD: "+this.avgSD);
				 
			 
				// Create new BURSTSD object and calculate the Standard Deviation 
				 
				prefsEditor.putFloat("callibrationSD", (float) this.avgSD);	
				prefsEditor.putFloat("callibrationMean", (float) this.mean);	
		        prefsEditor.commit();
		         
			         
		        Log.v("Callibration SD", ""+this.avgSD);
		        Log.v("Callibration Mean", ""+this.mean);	
 
			} 
			//Log.v("acceleration", fix.getDouble("accelx")+";"+fix.getDouble("accely")+";"+fix.getDouble("accelz"));			 
			 
		}  
		catch (Exception e) 
		{ 
			// TODO: handle exception 
		}