In an Android application, all of the strings values are hard coded (labels, dialog titles, buttons, etc). My task is to extract all these strings into a resource file.
Without manually going through the code and making a lot of c/p, is there a way I can extract all the Strings from the application? Using regexes? I was thinking of writing a Pattern with someting like “.*”
Or somehow parsing through the code?
Edit: I am aware of the externalize strings for Eclipse, but it creates .properties file and what I need is an .xml file. So, it would take some effort again to convert it to an .xml file.
I was thinking of writing a simple program that would extract all the strings with the names of the classes they were found in.
Eclipse provides an externalize strings wizard. For Android-specific solutions: Externalize strings for Android project.
Hope it helps.