I have a preference to get port of a service as shown below
<EditTextPreference
android:defaultValue="4444"
android:key="port"
android:title="Port"
android:dependency="service_on"
android:inputType="number"
android:maxLength="4"
/>
I have restricted it to maxLength 4 but there does not seem to be a minlength or minvalue ??
Basically I want to avoid empty values or lower value ports to avoid conflicts of port already in use/ android allocated ports etc
Any ideas how can I smartly changed the xml only without having to check on callbacks/listeners ?
Thanks,