GitHub Android Client source code reading

Source: Internet
Author: User

After reading the source code, in fact, the harvest is limited. Because the underlying framework used is similar to the framework that is used all the time, there is no such thing as an architecture that deserves to be studied carefully. But some of the wording of the things can be consulted!!

Example is to write a static public createintent (args) in each activity, so that other activity would like to transfer to this activity, do not need to know the parameters of the specific name is what, so as not to write wrong

1      Public Static Intent createintent (context context, string Username, string password) {2         New Intent (context, twofactorauthactivity.  Class); 3         Intent.putextra (Param_username, USERNAME); 4         Intent.putextra (Param_password, PASSWORD); 5         return Intent; 6     }

GitHub Android Client source code reading

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.