As noted in this artcle, you'll have to use EditTextPreference.getText().toString() if you need a string value. You can then save it to a local variable or to a database if necessary.
Edit
Writing your code:
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.prefs);
String userPreference = this.editPreference.getText(); // variable set to String value of text entered in widget
}