Java 或 PHP 的移动 Web 应用程序框架

发布于 2024-10-09 13:46:28 字数 245 浏览 3 评论 0原文

我正在开发一项网络服务,我们已经为其开发了适用于 iPhone 和 Android 的应用程序。为了暂时或以其他方式覆盖其余支持网络的手机,我们将使用网络应用程序。我们希望该应用程序能够很好地适应每个设备,并覆盖尽可能多的设备,包括低端设备。

如果存在的话,任何人都可以向我指出此类应用程序的框架吗?我正在寻找的是设备/用户代理检测,也许还有适用于各种移动设备的样板模板。 Java 或 PHP 都可以。我正在寻找两者之间的最佳解决方案。

谢谢

I am working on a web service for which we have already developed apps for iPhone and Android. To cover the rest of the web enabled phones, temporarily or otherwise, we are going to use a web app. We would like the app to conform nicely to each device as well as cover as many devices as possible including low end devices.

Can anyone point me to a framework for such an application, if such a thing exists. What I'm looking for is device/user agent detection and perhaps a boilerplate template for a wide range of mobile devices. Either Java or PHP wil do. I'm looking for the best solution between the two.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

素食主义者 2024-10-16 13:46:28

您可以查看 jquery mobile。我认为移动设备的服务器端代码(数据库、逻辑)与普通浏览器代码没有太大不同。也许您应该在屏幕上渲染更少的输出,但不能超过这个?我想你可以通过 jquery mobile 实现这一目标。

You could look into jquery mobile. I don't think the serverside code for mobile device(database, logic) is that much different from normal browser code. Maybe you should render less output to screen, but not more than that? I think you could achieve that thanks to jquery mobile.

南城追梦 2024-10-16 13:46:28

这样的事情并不存在,许多子组件都是免费提供的,但是获得正确的组合与适当的天才,使其为您工作,因为一些现成的框架是一个白日梦。

事实上,如果适应移动设备不是您的核心业务,您应该将其外包给其他公司,因为目前这些公司已经在该领域工作了近十年。 (顺便说一下,这几乎是强制性的“我在这样的公司工作,买我们的东西”插件

但是,为了进一步详细说明并实际帮助您,WURFL 在提到检测框架时通常会提到。不幸的是,WURFL 的准确度仅为 95% 左右,并且缺​​乏真正一致的结构。


要进一步阅读我对此的想法,您应该阅读我在此期间发表的其他半相关帖子:

Such a thing doesn't exist, lots of the subcomponents are available for free but getting that correct mix with the right amount of genius in it to make it work for you as some readymade framework is a pipe dream.

In fact if adapting to mobile isn't your core business, you should outsource it to some other company of which it is since at this point those companies have been in the field for almost a decade. (This, by the way is the nearly obligatory "I work for such a company, buy our stuff" plug)

But, to elaborate a bit further and actually help you, WURFL is usually mentioned when detection frameworks are mentioned. Unfortunately WURFL is only about 95% accurate and lacks a truly consistent structure.


For further reading on my thoughts about this, you should read these other semirelated posts I have made over my time here:

我很坚强 2024-10-16 13:46:28

您可以将 Java 与 JSF2.0 框架结合使用。在这种情况下,我建议使用第三方组件库,例如 PrimeFaces,更明确地 PrimeFaces 的 TouchFaces

对于设备检测,您可以使用像 WURFL 这样的库,它具有适用于 Java 和 PHP 的 API。

You could use Java with the JSF2.0 framework. In that case I suggest to use an third party component library like PrimeFaces, more explicitly PrimeFaces's TouchFaces

For device detection you could use a library like WURFL which has an API for both Java and PHP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文