Code example for Preferences

Methods: getInt

0
	public void setWidth(int v) {
		_prefs.putInt("width", v);
	} 
	 
	public int height () { 
		return _prefs.getInt("height", 400);
	} 
	 
	public void setHeight(int v) {
		_prefs.putInt("height", v);
	} 
	 
	public int x() { 
		return _prefs.getInt("x", 100);
	} 
	 
	public void setX(int v) {
		_prefs.putInt("x", v);
	} 
	 
	public int y() {