Back to project page Task-Reminder-App.
The source code is released under:
MIT License
If you think the Android project Task-Reminder-App 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 com.TechSect.TaskReminderApp; /*from w ww .ja v a 2 s. com*/ import android.os.Bundle; import android.preference.EditTextPreference; import android.preference.PreferenceActivity; import android.text.method.DigitsKeyListener; public class TaskPreferences extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.task_preferences); // Set the time default to a numeric number only EditTextPreference timeDefault = (EditTextPreference) findPreference(getString(R.string.pref_default_time_from_now_key)); timeDefault.getEditText().setKeyListener(DigitsKeyListener.getInstance()); } }