title: Best Practice: Input Validation (Android)
body: <p>I am new to android mobile development (Android Studio native development - for new knowledge). And here I want to ask a question regarding best practice for input validation.
  As far we know, when a developer develop input form. We need to prevent a user from key in a wrong input into the text field. So here is my question,</p>
  
  <ol>
  <li>Can we create one java file for validation purpose only? All input form ,must go to that one validation file only (In case of many input page screen in one apps). If <strong>YES</strong>, how can I get an example/link/tutorial of that technique for my learning study. If <strong>NO</strong>, why?</li>
  </ol>
  
  <p>From my point of view personally, it should have a way to implement the technique. So that we didn't need to reuse same code all over again for each java file (in term of clean code).  Unfortunately, I didn't find any example or tutorial for that. Maybe I search a wrong keyword or misread. And if there is no such technique exist, what are the best practice for input validation?</p>
  
  <p>Thank you.</p>
  
  <p>p/s: This thread for find a better way in best practice. Thank you.</p>