Registration interface design and implementation (2) Registration business logic implementation, interface design business
Business Flow chart:
1 // Register_Activity.java 2 3 private boolean checkform () {4 if (this.txt RegAccount. getText (). toString () = null | this.txt RegAccount. getText (). toString (). length () = 0) {5 Toast. makeText (getApplicationContext (), "Warning: the registered account cannot be blank", Toast. LENGTH_LONG ). show (); 6 return false; 7} 8 if (this.txt RegPassword. getText (). toString () = null | this.txt RegPassword. getText (). toString (). length () = 0) {9 Toas T. makeText (getApplicationContext (), "Warning: The registration password cannot be blank", Toast. LENGTH_LONG). show (); 10 return false; 11} 12 if (! (This.txtregpassword.gettext().tostring().html s(this.txt ReRegPassword. getText (). toString () {13 Toast. makeText (getApplicationContext (), "Warning: The two passwords are inconsistent", Toast. LENGTH_LONG ). show (); 14 return false; 15} 16 return true; 17}
Run: