android - 在 Android 手机中看不到 Worklight 设置选项?

标签 android ibm-mobilefirst

我最近开始使用 Worklight 6.1 开发人员版来创建一个 android 应用程序。我以前的应用程序版本部署在我的 nexus 5 上,我能够查看 Worklight 设置选项,更改我的服务器 URL 等等。 在这里看到它:: http://www.connoisseur.comli.com/screenshots/Screenshot_nexus.png

后来我无法查看此设置选项。 这里:: http://www.connoisseur.comli.com/screenshots/Screenshot_2014-03-21-19-03-47.png

我的应用程序描述 rune 件:

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Licensed Materials - Property of IBM
         5725-G92 (C) Copyright IBM Corp. 2006, 2013. All Rights Reserved.
         US Government Users Restricted Rights - Use, duplication or
         disclosure restricted by GSA ADP Schedule Contract with IBM Corp. --><!--   Attribute "id" must be identical to application folder name --><application xmlns="http://www.worklight.com/application-descriptor" id="MF_PIZZA" platformVersion="6.1.0.00.20131219-1900">
<displayName>MF_PIZZA</displayName>
<description>MF_PIZZA</description>
<author>
    <name>application's author</name>
    <email>application author's e-mail</email>
    <homepage>http://mycompany.com</homepage>
    <copyright>Copyright My Company</copyright>
</author>
<mainFile>MF_PIZZA.html</mainFile>
<features>
    <JSONStore/>
    <Analytics/>
</features>
<thumbnailImage>common/images/thumbnail.png</thumbnailImage>
<iphone bundleId="com.MFPIZZA" version="1.0">
    <worklightSettings include="true"/>
    <security>
        <encryptWebResources enabled="false"/>
        <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
    </security>
</iphone>
<android version="1.0">
    <worklightSettings include="true"/>
    <security>
        <encryptWebResources enabled="false"/>
        <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
        <publicSigningKey>Replace this text with the actual public signing key of the certificate used to sign the APK, available by using the 'Extract public signing key' wizard.</publicSigningKey>
    </security>
</android>
</application>

我在评论中添加了第三种情况,因为由于我在声誉方面的限制,我无法发布两个以上的链接。

最佳答案

查看此问题的答案:IBM Worklight 6.1 - Questions about "Worklight Settings"

这是一个详细的答案,解释了为什么您可能会或可能不会在 Android 中看到菜单按钮。
基本上,它取决于 Android 项目使用的 API 级别以及使用的操作系统版本。从某个 API 级别开始,Android 中的选项菜单被删除(由 Android)并由操作栏取代。 Worklight 不支持操作栏,这就是您看不到菜单选项的原因。

这是产品中已知的缺失功能。


来自评论:

During development, Is it possible to change the server URL statically without the settings feature?

  1. 你可以设置一个远程服务器地址using the Build Settings and Deploy Target dialog .
  2. 您还可以将android\native\wlclinet.properties 复制到nativeResources 文件夹并编辑其中的属性。构建后,此文件将被复制到 native 文件夹

在这两个选项中,更改都是在构建应用程序之前完成的,而不是在运行时完成的。

关于android - 在 Android 手机中看不到 Worklight 设置选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22562414/

相关文章:

android - Firebase 与 appcompat 不兼容

android - Edittext样式不打开键盘

ibm-mobilefirst - IBM Worklight 6.0 - 在 Liberty 配置文件上安装 WL 6.0 服务器后,Worklight Console 不显示 - 错误 500

ios - IBM Worklight 6.0 - "Instrumentation Failed"错误

cordova - 在应用程序预览 (MAC) 中找不到 MobileFirst 8.0 Cordova CLI 界面

mysql - SQL 适配器身份验证 - Worklight

Android:在单独的线程中异步运行一个方法

android:从子菜单中删除一个项目

android - SQLCipher 使用 rekey 更改数据库密码

java - 如何在 Android 中使用 WLResourceRequest 创建 Multipart 请求