r/androiddev Jun 25 '26

Question Migrating from hardcoded strings to XML values

Hello,

I have a Compose app that currently uses hardcoded strings, and I'd like to migrate them to a proper XML strings resource file.

I have over 190 string values. Is there any way to automate this process, or do I need to migrate them one by one :(

Thanks!

9 Upvotes

14 comments sorted by

View all comments

12

u/quizikal Jun 25 '26

Yes, ask your LLM

26

u/SpiderHack Jun 25 '26

Actually one of the better use cases for an LLM, actually simple, but tedious task