You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android Studio yelled at me for unable to resolve the "helper" variable. I am new to native android development. May I know if that helper is your own class or it's a system class? Which package should I import?
Thanks,
D
The text was updated successfully, but these errors were encountered:
I dug around your code and after trial and error I found a way to fix it.
Maybe you can try change Step 3 's code to the following
ActivityFormHelper helper = new ActivityFormHelper(DefaultForm.class, this);
ValidationResult result = helper.validate();
if (result.hasError()) {
// Show error messages
Toast.makeText(this, result.getAllSerializedErrors(), Toast.LENGTH_SHORT).show();
} else {
// This entity object has clean and converted data
DefaultEntity entity = helper.create(DefaultEntity.class);
}
Hi,
Thanks for creating this nice form validator. I am trying to use it in my project. But I got stuck in Step 3 in Usage.
DefaultEntity entity = helper.create(DefaultEntity.class);
Android Studio yelled at me for unable to resolve the "helper" variable. I am new to native android development. May I know if that helper is your own class or it's a system class? Which package should I import?
Thanks,
D
The text was updated successfully, but these errors were encountered: