WebView is being used with local .html file which in turn includes local .js files. Where to put .html, .js and probably other similar files in an Android Studio project so that IDE would show me these files and IDE plugins such as auto-complete would work?
Things I have tried:
Assetsfolder. Works but it is not recommended
as the assets cannot (and shouldn't) be updated once the app has been packaged and signed
but doesn't that mean that the next time I build .apk file and the application is beings installed the assets will be replaces with anything that was in the assets folder in the new .apk build?
res/raw. Got that idea from here. Looks like it will work for.htmlfiles but not for.jsas I am getting compilation error because of.jsfile:'-' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore/drawables/raw. Does not seem to work at all although it was suggested here. First thing -Android Studiodoes not even show these files if you put them in that directory (tried renaming to/drawable/raw, note not a plural name) so that is an issue for me even if compilation would succeed. Second - if I put.htmland.jsfiles indrawableI get:The file name must end with .xml or .pngTried putting them in one of Java packages but could not get those files because it seems Android Java can not access files like plain Java does.