0

Is there any way to check String reference from String.xml

I have many String in String.xml but i want to remove some unused String's. i am not finding any way to check that which String used by other class's.

so how can i get infomation about used String's in String.xml

if i check one by one it will take whole day.

Adb
  • 195
  • 1
  • 4
  • 13

3 Answers3

1

Lint can help you. Try to check your project. Look at the screen : enter image description here

Ilya Demidov
  • 3,275
  • 2
  • 26
  • 38
0

In Eclipse if you updated android sdk Lint tool will automatically come with a plugin, it will give warnings about xml resources which are not referenced.

Check this link

http://tools.android.com/recent/neweclipselintui

Vishwanath.M
  • 6,235
  • 11
  • 42
  • 56
0

On the command line, you can use android lint (as said in the comment by @Lalit Poptani). Inside the project, you just type

ant lint

The warnings look like

Warning: The resource R.string.... appears to be unused
[UnusedResources]
[lint] some text

Community
  • 1
  • 1
serv-inc
  • 35,772
  • 9
  • 166
  • 188