If you are a regular Android appProgramOr the person who is working on the android maintenance project will be interested in the topic you are talking about.
The only difference is that the APK package generated by your project will be smaller, rather than useless with your development and maintenance.CodeAnd unlimited resource accumulation, which is not only a nightmare for developers and maintainers, but also an invisible bomb.
Let's take a look at how I did the above two things.
Code clearing tool: ucdetector
1. Enter the following plug-ins in Eclipse:Http://ucdetector.sourceforge.net/update
2. After the installation, you will see:
3. Then you can right-click to run the task and generate the expected result:
4. In addition, the scan result file is generated in the directory "D: \ workspace \ ucdetector_reports:
5. Finally, you can delete the corresponding functions and classes based on the logs in the HTML. Isn't it easy?
Clear unused resources: arc (Android resource cleaner)
Http://download.csdn.net/detail/androidzhaoxiaogang/4539852
1. the tool is a tool developed by myself based on my own experience and improved on the basis of others. Compared with other tools, it is easier to use and can clear about 12 unused resources in the project, I am also deeply aware of its convenience.
2. The interface is as follows:
3. click Open, select the root directory of the project, and click Start. (Note that after the scan is completed, wait for a while for a project that is too large to get the result, in addition, you can click maximize in the upper right corner to view the scan results ).
4. For XML and PNG images, you can click Delete in the Operation menu and delete all images to achieve the goal;
5. If you encounter any problems during use, please contact me in the help box.