Check if a "String Resource" is being used in the project

Asked

Viewed 61 times

4

Situation

When we do not use a variable in the file, the Eclipse has a feature that is to inform the developer by sending the following message:

The value of the field Class.Clienteid is not used.

See the image below:

inserir a descrição da imagem aqui

Similarly, there is a way to know if an item is not being used in the file res/values/strings in the Eclipse? As for example the txt_button_enter as shown below:

<string name="txt_button_enter">Enter</string>

In advance thank you.

1 answer

5


To check in Eclipse, do the following:

  1. Right-click the project name and select Package explorer
  2. Select Android Tools
  3. Select Run Lint: Check for common Errors

Now when you open your file xml strings., you will see everything not being featured.

  • Hadn’t used this feature yet. Vlw. Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.