I need to find and extract all hard coded strings in my project in Android Studio (beta) 0.84. I need a static analysis tool like Find Bugs do this for me in one shot and allow me to step through each message and extract the string to resource files. Even better would be if the entire process is automated.
In Android Studio (beta) 0.84 the File / Setting /FindBugs-IDEA shows I18N as an option under Reporting tab. But I just cannot figure out how to make it work.
Thanks for any suggestions.
Hardcoded string are the literal strings. So, What you may be referring to is, literal strings in the data. C# Copy Code.
As @Maor Hadad and other upvotes suggested me : I convert my comment in an answer, so :
Since Android Studio 1.2.2, there is a new option in
"Analyse > Run inspection By Name" => "Hardcoded strings".
I used it and it seems quite more reliable with current version than "hardcoded text" (that checks only xml files).
Seen here link
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