在android中放置除assets以外的html,java脚本文件的位置 [英] where to place the html,java script files other than assets in android

查看:30
本文介绍了在android中放置除assets以外的html,java脚本文件的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以将html和java脚本代码添加到android中将在web视图中使用的assets文件夹之外的任何地方,它也不能是URL,因为它应该离线工作,因为当我们放置.html,java脚本等时在资产中,当我们解压 apk 时可以很容易地找到它.

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.

请在这方面给我建议.

谢谢

纳根德拉.

推荐答案

是的,您可以将它们放在 /drawables/raw 文件夹中,您可以像 从 web 视图中的原始文件夹加载 html 文件.如果你谈论解压甚至逆向工程,java代码,布局文件都可以逆向工程,有时即使你混淆了代码.我建议您将所有敏感数据存储在服务器上,然后在应用程序的运行时获取它.

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.

这篇关于在android中放置除assets以外的html,java脚本文件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆