where to place the html,java script files other than assets in android

588 views Asked by At

can we add the html and java script code anywhere other than assets folder in android which will used in web View, and it cannot be a URL also since it should work offline, because when we place the .html,java script etc in assets it can be easily found when we unzip the apk.

Kindly advice me in this regard.

Thanks

Nagendra.

2

There are 2 answers

0
Shobhit Puri On BEST ANSWER

Yes you can put them in /drawables/raw folder and you can access them like mentioned in Load html files from raw folder in web view. If you talk about unzipping or even reverse engineering for that matter, the java code, layout files all can be reverse engineered, sometimes even if you obfuscate the code. I would suggest you to store all sensitive data on a servers and then get it on runtime in the app.

0
Zeeshan Ahmed On

You can put them in drawable or values folder as well.