【问题标题】:intel xdk methods not working! works on xdk app preview but not work when I build the app英特尔 xdk 方法不起作用!适用于 xdk 应用程序预览,但在我构建应用程序时不起作用
【发布时间】:2015-05-07 15:18:31
【问题描述】:

我正在使用 bootstrap (html5 + cordova) 创建一个简单的按钮。它可以在英特尔的应用预览应用中运行,但是当我在我的 Android 上安装它时它就无法运行。

  • 只在 html5 上测试过,还是不行。
  • 我在 intel xdk 中勾选了启动外部应用程序域标记

app.js

function feedback() {

     var bodyText = 'write your message here';
        intel.xdk.device.sendEmail(bodyText, "amir329@icloud.com", "", true, "", "" );

}

index.html

<button onclick="feedback();">feedback</button>

查看图片

【问题讨论】:

  • 在html文件中是这样的
  • 如果您使用四个空格缩进您的代码,它将正确显示。这一次,我为您编辑了问题。 :)
  • 哦,当然,对不起......我的第一次......

标签: javascript android html cordova intel


【解决方案1】:

问题解决了。这个人制作了一个可以工作的插件。我现在正在使用它.. https://github.com/krisrak/html5-cordova-plugin-sharing

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多