简体   繁体   English

在 android 中实现基于 Web 的应用程序的最佳方式

[英]Best way to implement a web-based application in android

I'm developing an web-based application without PhoneGap.我正在开发一个没有PhoneGap 的基于Web 的应用程序。 The application consist on 7 modules (events, news, photos) and each module is one item on menu.该应用程序由 7 个模块(事件、新闻、照片)组成,每个模块都是菜单上的一项。 Also each module is a independent webpage.每个模块也是一个独立的网页。 So, I don't know if I need implement 7 embedded browsers, or only one browser, or another kind of architecture.所以,我不知道我是否需要实现 7 个嵌入式浏览器,或者只需要一个浏览器,或者另一种架构。

Could you please help me?请你帮助我好吗?

If you are trying to basically make an embedded browser that uses your website you should only have 1 browser.如果您尝试基本上制作一个使用您的网站的嵌入式浏览器,那么您应该只有 1 个浏览器。

If you are trying to have a better integration with the android platform you should create one activity that works as a web browser and pass the url inside the intent for each "module" you are trying to access.如果您尝试与 android 平台更好地集成,您应该创建一个作为 web 浏览器的活动,并在您尝试访问的每个“模块”的意图内传递 url。

I'm not entirely sure what you mean by "Module".我不完全确定您所说的“模块”是什么意思。 Is this something thats on the website or are you talking about activities inside the android platform?这是网站上的内容还是您在谈论 android 平台内的活动?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM