Is it possible to let android studio read resources in external folder with sourceSets? -


here sample of sourcesets code block in build.gradle

sourcesets {     main {         manifest.srcfile 'androidmanifest.xml'         java.srcdirs = ['src']         resources.srcdirs = ['src']         aidl.srcdirs = ['src']         renderscript.srcdirs = ['src']         res.srcdirs = ['res']         assets.srcdirs = ['assets']     } } 

what wanted achieve that. want read resources external folder. example in data/data/com.myapp/res.

im not gradle api, can guide me of how it?

the reason want because. client want update string translation dynamically. without need re-compile , re-download app. know not standard way of using multilanguage. don't want turn requirement down without effort , strong evidence.

you misunderstanding purpose of sourcesets.

source set used map source folders in project. not means point directories in installed app.

update after reading reason:

since want deal strings, easiest way store them in sqlite db , update db server whenever required new values.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -