11

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

1 Answer 1

14

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.

2
  • @keyboardsurfer but how to use the jar. please share the code. thanks :)
    – java dev
    Jul 11, 2013 at 9:43
  • I've updated my answer. Also It's described on the project's website at the time I'm writing this.
    – Ben Weiss
    Jul 11, 2013 at 10:01

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.