Code example for SharedPreferences

Methods: getIntgetString

0
	} 
 
	@Override 
	public void readFromSharedPreferences(SharedPreferences sharedPrefs)
	{ 
		super.readFromSharedPreferences(sharedPrefs);
		 
		hostname = sharedPrefs.getString("bookmark.hostname", "");
		port = sharedPrefs.getInt("bookmark.port", 3389);
	} 
	 
	// Cloneable 
	public Object clone()
	{ 
		return super.clone();					 
	} 
}