【问题标题】:Atmosphere with Android安卓氛围
【发布时间】:2012-03-07 23:08:43
【问题描述】:

首先,我计划在服务器端使用Atmosphere,在客户端使用一个带有 WebView 的 Android 应用程序,我将在其中使用 jQuery。

但是,稍后计划一个更“标准”的 Android 应用程序(没有 WebViews),我想知道 Atmosphere 是否也可以使用。

谢谢!

【问题讨论】:

    标签: java jquery android atmosphere


    【解决方案1】:

    jQuery.atmosphere.js 在 Android 上运行良好。所以你应该没事。

    【讨论】:

    • 太棒了!感谢您确认我对 jQuery 插件的假设 :) 关于后一个问题,例如,我可以在通过 HttpClient 发出请求时使用 Atmosphere(制作不使用 WebView 的 Android 应用程序时的场景)吗?或者我应该搜索更具体的客户端库来执行此操作?
    • Atmosphere 会起作用,但您也可以查看 AHC (AsyncHttpClient) 库。那是在 Atmosphere 中经常使用的。
    【解决方案2】:

    你可以试试这个方法:

    服务器端:

    Atmosphere Meteor Servlet

    • Meteor Servlet 实现比 Atmosphere 运行时方法简单。

    Android 客户端:

    Wasync图书馆

    • Wasync 库用于扩展 Atmosphere 框架的功能。
    • 您可以从其示例中下载适用于 Android 应用程序的示例聊天应用程序。

    【讨论】:

      猜你喜欢
      • 2012-04-09
      • 2012-12-06
      • 2014-11-21
      • 1970-01-01
      • 2014-02-13
      • 2015-11-04
      • 2020-07-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多