I would like to know if there is the way to find out which resources (layouts, strings, colors etc. from res-folder) are not used in my android project.
What I mean, in my app I have some old strings, which won't be used anymore and I would like to remove them from the string.xml
Thank you in advance.
Ps. I'm using Eclipse for developing
You can easily search for unused resources from Android Studio. Just press Ctrl Alt Shift i and type "unused resources" (without quotes). That will execute lint. Super easy way to run lint commands (and other stuff from IDE).
The res/values folder is used to store the values for the resources that are used in many Android projects to include features of color, styles, dimensions etc.
A swift google search brought up this project: http://code.google.com/p/android-unused-resources/
After running the jar, all the unused resources of your project are being displayed.
To run the jar just call java -jar AndroidUnusedResources.jar
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With