[Android] Android project architecture

Source: Internet
Author: User
Tags md5 encryption

Preparation steps:

1. Create a project (set version compatible, minimum compatible version)

2. Import Common jar Packages (handles string and encrypted jar files)

Commons Lang,Commons Codec

Commons-codec.jar is mainly used to encrypt the MD5

        // Common-codec.jar MD5 Encryption        Digestutils.md5hex ("12345");         // Common-lang.jar string judgment, null        Stringutils.isblank ("");        Stringutils.isnotblank ("");         // string Substitution        String info= "Aaaaatshaaaa";        " tsh "," Taoshan ");         // string interception        info= "<body>xxxx</body>";        " <body> "," </body> ");

3. Introduction of test Framework (class library and boot appliance configuration)

Application Architecture:

1. Network communication

( Mobile Client Access interface documentation, protocol encapsulation XML and JSON)

( communication with the server via httpClient )

2. Business operations

Public Information

User Information

Business Layer Invocation (how to reduce coupling, cohesion low coupling, using Factory mode)

3. Interface Tips

Unified interface Management

Demand Analysis ==> prototype design ==>==> selection

Network design ==> Business design ==> Interface Development

[Android] Android project architecture

Related Article

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.