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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -