Delete unused resources before sending

Question:

Does anyone have a quick way to remove all additional resources in an Android application that are not used (mentioned) in my code?

Explanation:

I noticed that as soon as I finally get one of my Android apps ready to ship, there are usually a lot of unwanted resources in my app. I usually have some additional drawings that are not used, because I switched them with new ones. I also have additional String resources and even some additional layouts that are not used anywhere in my application (they don’t have any reference to them in Java code). I want my applications to occupy the least amount of space on the user's phone.

+4
source share
3 answers

yes, ADT in eclipse includes something called "android lint".

http://tools.android.com/tips/lint

in a nutshell, it indicates problems with your application. one thing he notes is unused resources. it does not automatically delete them.

you can access it from eclipse via (right click project)> android tools> launch lint.

+9
source

other than the built-in Lint: http://code.google.com/p/android-unused-resources/

he cannot delete them automatically, but he should be able to tell you which resources are not used.

+2
source

We are creating a small tool that will remove all unused resources from your project based on the output of the android. We believe that this is a more reliable android-unused-resources project, since we rely on the official lint tool.

https://github.com/KeepSafe/android-resource-remover

0
source

Source: https://habr.com/ru/post/1403369/


All Articles