Validating EditTextPreference created via addPreferencesFrom

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Validating EditTextPreference created via addPreferencesFrom

Postby androit » Mon Mar 02, 2009 8:24 pm

Hi all,

I am trying to validate a value entered in a EditTextPreference which is in a PreferenceActivity created with a XML resource with addPreferencesFromResource(R.xml.preferences)

My problem is that I can not inflate the EditTextPreference in order to put some sort of listener (most likely OnPreferenceChange but I am open to suggestions).

I need really need to validate this value because I need to cast it to Double afterwards.

Thanks for the help.

Androit
androit
Freshman
Freshman
 
Posts: 9
Joined: Fri Dec 19, 2008 5:15 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 3 guests