How to determine if an app is native or html5? [closed]

烂漫一生 提交于 2019-12-23 07:24:17

问题


I would like to know how any mobile app is native or html5. Is there any software or website that tells that. How can i detect if an app is native or html5?


回答1:


You can unzip the .apk with any tool like winzip or winrar. If it's an html5-based app, you will see .html, .js and .css files in the /res/assets folder.

To get the .apk, pull it from your phone with adb. You might need root for this though.




回答2:


Native apps often use web views for rendering purposes - these are termed hybrid apps. The use Java to figure out what to display (cf a web server) and then use a web view to render the display. Thus the presence of HTML/CSS/JS files cannot be used to definitely determine that its an html5 app.

As @Tim says - unless you dig very, very deeply you can't be 100% sure. Probably not even then.



来源:https://stackoverflow.com/questions/10017341/how-to-determine-if-an-app-is-native-or-html5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!