Android string.xml resource file from server

后端 未结 4 1856
遇见更好的自我
遇见更好的自我 2021-01-12 08:33

As we know already e.g. we cannot change res folder values and files at runtime,

I am working on an app, in which we are supporting more than 25 languag

4条回答
  •  隐瞒了意图╮
    2021-01-12 09:00

    this can be achieved with the help of AppBundle feature of google play. one of his jobs is to allow other parts app (string res) to be downloaded later when user need them or when you decide.

    there's also a bad approach too! you can ignore getString() completely and write a method that retrieves the strings from a different location (like the downloaded file)

    I suggest you follow the AppBundle approach which is reasonable and you don't have to fight the OS.

提交回复
热议问题