Defensive Programming in Android: Input and Methods