Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detail wrong unused string #8

Closed
GoogleCodeExporter opened this issue Apr 25, 2016 · 3 comments
Closed

Detail wrong unused string #8

GoogleCodeExporter opened this issue Apr 25, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Define a string in string.xml (ex: str_notification)
2. In source, write a function to log this str_notification (name this function 
is printLog() (Log.i(TAG, str_notification);}
3. Although we don't call printLog, but we need to keep it to use later.
4. Run android-unused-resources and see str_notification is listed as unused.

In fact although we don't use str_notification at the moment, but we need to 
keep it for using later? But herein str_notification is listed as unused.



Original issue reported on code.google.com by minh.tri...@gmail.com on 17 Jun 2011 at 3:11

@GoogleCodeExporter
Copy link
Author

So if I'm reading that right, your problem is that it's telling you a string 
(str_notification) is unused RIGHT NOW, but may not be in the future?

If so, that's not a bug.

Original comment by skenned...@gmail.com on 6 Aug 2011 at 12:30

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Thanks for your response.
My bug is, a string (str_notification) is USED right now in a function (such as 
printLog() ...), but now this function (printLog()) is unused at the moment (I 
temporary don't call this function, but will recall it later).

Original comment by x3c...@gmail.com on 7 Aug 2011 at 7:38

@GoogleCodeExporter
Copy link
Author

Can you post the line of code that uses str_notification?

Original comment by skenned...@gmail.com on 7 Aug 2011 at 1:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant