Back to project page makler.
The source code is released under:
GNU General Public License
If you think the Android project makler listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.net.newton.Makler.ui; /* w w w. java 2 s .c o m*/ import pl.net.newton.Makler.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.preference.EditTextPreference; import android.preference.PreferenceActivity; import android.text.method.DigitsKeyListener; import android.widget.EditText; public class Preferences extends PreferenceActivity { @SuppressWarnings("deprecation") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); setTitle("Ustawienia"); Intent resultIntent = new Intent(); resultIntent.putExtra("preferencesChanged", true); setResult(Activity.RESULT_OK, resultIntent); EditText commision = ((EditTextPreference) findPreference("commision")).getEditText(); EditText minCommision = ((EditTextPreference) findPreference("minCommision")).getEditText(); commision.setKeyListener(DigitsKeyListener.getInstance(false, true)); minCommision.setKeyListener(DigitsKeyListener.getInstance(false, true)); } }