Skip to content

Instantly share code, notes, and snippets.

@kpgalligan
Created September 30, 2014 17:01
Show Gist options
  • Save kpgalligan/337850fa4721a6a56f14 to your computer and use it in GitHub Desktop.
Save kpgalligan/337850fa4721a6a56f14 to your computer and use it in GitHub Desktop.
String matching for errors is brittle and likely to break
} else if (task.userResponse.getMessage().equals("It appears you've already signed up")) {
Toast.makeText(getActivity(), "It appears that you've already signed up", Toast.LENGTH_SHORT).show();
}
@kpgalligan
Copy link
Author

Expand a bit on this. Maybe merge with error control, although its possibly enough with some more tips to stand on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment