Registration interface design and implementation (2) Registration business logic implementation, interface design business

Source: Internet
Author: User

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:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.