android - How to share String among multiple modules? -
i have 3 modules: mod1
, mod2
, mod3
. module mod1
has dependencies mod2
, mod3
.
i want have 1 string (in particular useragent because 3 modules http-talk server , 3 should have same user agent set) shared among 3 modules.
if "one string" want make common other modules, in strings.xml
file(not string
value in .java
file), can create common module say, mode0
, including string
values want make common other modules in it's strings.xml
file. can add mode0
dependency other modules. maybe not best way but, hope useful!
Comments
Post a Comment