Hi,
I'm using: editText.SetFilters( new IInputFilter[] { new InputFilterLengthFilter( maxLength ) } );
But I get a crash: Java.Lang.ClassNotFoundException: Didn't find class "android.text.IInputFilter" on path: /system/framework/com.google.android.maps.jar…
I tried adding the follow to application startup, but it made no difference: (Also, from the look of a thread dated 2011 this isn't needed anymore: http://t8187.gnome-mono-monodroid.monotalk.info/java-lang-noclassdeffounderror-android-text-iinputfilter-t8187.html) Android.Runtime.TypeManager.RegisterType( "android/text/InputFilter", typeof( IInputFilter ) );
For now, I'm just going to have to go through all the controls at set the length in the axml, but I really would rather have this work programatically. Our iPhone app uses the same validations.
Any ideas why I'm still seeing this? I'm using the latest stable releases, and testing on a Nexus 7 in debug mode without linking.
Thanks,
Justin