Externalize strings for Android project
Use Refactor in Eclipse:
- highlight the string
- From the Eclipse menu select Refactor -> Android -> Extract Android String.
The string will be moved to strings.xml and the call to getContext().getString(R.string.my_string)
generated.
You can also position your cursor over the string literal and press ctrl+1. Then choose "externalize" by the android icon.
use shortcut Alt+Shift+A and after that press S. it'll solve your problem.