Some tips on how to develop Android efficiently

Source: Internet
Author: User
Some tips for efficient Android development
  • use shortcut keys

About shortcut keys, please poke here

Often see someone on a line of manual copy sticky The name of a variable that is affixed to the code, or a variable. Every time you see, the heart will kept in the Spit Groove: Do not be so chicken, good.

  • use batch processing (command line)

adb Shell command Everyone should be able to use it, such as adb uninstall com.xxx.xxx /strong> is used to uninstall programs, but few people write him into batch .

In everyday Android development, we often need to uninstall an installed app, or clear the app's cache, and so on, if the app's cache directory is saved in the memory card, then we need to find the cache folder and delete it.

If you use manual, that is, in the list of mobile apps to find the corresponding app to uninstall it, then I need to do a series of actions, pick up the phone, unlock, lose the password (if you have set the password, PS: In fact, every day development of the unlock screen also need to enter the password, it is the inverse day. ), find the app, uninstall and so on, this series of actions, when I repeat the number of times, will feel very stupid. Because these movements are repeated many times, it is very time consuming and laborious. Of course, you can say that you are not manually to uninstall the app, you are through the cmd command line to uninstall, yes, this I must admit more convenient and fast a bit, because I had a period of time to do so, but then I still think every time on the keyboard to hit the ADB uninstall command this way too slow, So I thought about batching . The simple "  adb uninstall com.xxx.xxx  " statement is written to the batch. bat file, and each time you uninstall the app, double-clicking the. bat file will be OK.

      MORE: Whether it's a Mac OS platform or an XP platform, it supports the. bat Batch command.

 

A summary of some tips for efficient Android development

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.