Which is best way to define constants in android, either static class, interface or xml resource?

后端 未结 6 1265
独厮守ぢ
独厮守ぢ 2020-12-07 14:28

I\'m developing an android application which uses web service to get data from server, for that I\'m having three different set of URLs to point development system, test ser

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 15:09

    It’s always a good practice to extract UI strings from your app code and keep them in an external file. Android makes this easy with a resources directory in each Android project.

    http://developer.android.com/training/basics/supporting-devices/languages.html

提交回复
热议问题