Some tips for efficient Android development
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