30 lessons for creating an Android app

Source: Internet
Author: User
<span id="Label3"></p><p style="margin: 0px 0px 1.2em !important;"><p style="margin: 0px 0px 1.2em !important;">There are two kinds of people in the World-the people who learn from the lessons and the people who listen to others ' suggestions. Here are some of the things i've been learning to share with you:</p></p><p style="margin: 0px 0px 1.2em !important;">1: before you add any third party parties, think Twice: is this really a mature project?<br>2: If a thing is not visible to the user, do not draw it!<br>3: do not use the database unless you really need it;<br>4: to reach the 65k method number limit comes very fast, really, very fast! But multidexing can save you;<br>5:rxjava is the best alternative to asynctasks and other offal;<br>6:retrofit may be the best network request library now;<br>7: use Retrolambda to simplify your code;<br>8: combine RxJava with Retrofit and RETROLAMBDA to make your day cool!<br>9: I use Eventbus and it's good, but I don't use too much, because the codebase gets messy;<br>10: The package name follows the function, not the hierarchy;<br>11: move everything beyond the application thread;<br>12:lint can help you optimize the layout and layout tree so that you can identify the redundant view that may have been removed;<br>13: If you are using gradle, use all possible means to speed it up;<br>14: to builds do profile reports, in order to know what occupies the compile time;<br>15: use a well-known architecture;<br>16: it takes time to test, but once you find the trick it can be faster and more robust than not using the test;<br>17: use Dependency injection to make your app more modular and easier to test;<br>18: listening to the fragmented podcast will benefit you;<br>19: never use your personal email as a publisher account for your Android market;<br>20: always use the appropriate input type;<br>21:use analytics to find usage patterns and isolate bugs;<br>22: focus on the latest libraries (use Dryrun to quickly see their effects);<br>23: your service should do what you need and die as soon as possible;<br>24: Use account Manager to prompt for login username and email address;<br>25: use CI (continuous integration) to build and publish your beta and product apk;<br>26: do not run your own CI server, maintaining the server is a time-consuming matter because of disk space, security issues, updating the server to prevent SSL attacks, and so On. Use circleci, Travis or shippable, they are cheap, and you can worry less about things;<br>27:automate your deployments to the playstore;<br>28: If a library is large and you only need to use a subset of these features, you should look for a smaller alternative (such as relying on proguard);<br>29: do not use more than the actual required Module. Compiling a module from scratch or just checking that the last module is up to date is almost the time it takes to load binary. jar/.aar dependence of more than 4 times times;<br>30: start thinking about using SVG instead of png;<br>31:make Library Abstraction classes, it ' ll be a-easier to switch-to-a new library if you have need to switch in one plac E (e.g.applogger.d ("message") can contain LOG.D (TAG, Message) and later realise that TIMBER.D (message) is a better option) ;<br>32: Monitor your connection and the type of connection (more data is updated under wifi)? );<br>33: Monitor your power and battery (update more data when charging?) Pause the update when the battery is low? );<br>34: a user interface as a joke, if you need to explain it, then it's not good enough;<br>35:tests is great for performance:write slow (and Correct) Implementation then verify optimizations don ' t break anything With Tests.</p><p style="margin: 0px 0px 1.2em !important;"><p style="margin: 0px 0px 1.2em !important;"></p></p>?<p><p>30 lessons for creating an Android app</p></p></span>

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.