Code example for EditTextPreference

0
package nz.kapsy.okobotoke; 
 
import android.os.Bundle; 
import android.preference.EditTextPreference; 
import android.preference.PreferenceActivity; 
 
public class DevPrefActivity extends PreferenceActivity{ 
	EditTextPreference val1 = new EditTextPreference(null); 
	 
	@Override 
	public void onCreate(Bundle savedInstanceState) { 
	    super.onCreate(savedInstanceState); 
	 
	   // val1.set 
	     
	} 
 
}