守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 2670|回复: 1
打印 上一主题 下一主题

打电话,短信,发邮件ANE(android)

[复制链接]
  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52695
    钢镚
    1422

    开源英雄守望者

    跳转到指定楼层
    楼主
    发表于 2015-2-20 20:52:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    应用下载
    应用名称: Android-Communication-Extension-ANE
    支持64位: 不支持
    当前版本: 未知
    运行平台: Android 
    开发语言: ActionScript 3 JAVA 
    应用类别: ANE-JAVA
    应用简介: Android ANE. Phone, SMS, Email functionality.

    拨电话号码;
    呼叫的电话号码;
    -发送短信;
    -发送邮件(附件支持)。
    Android-Communication-Extension-ANE

    Native Extension for Adobe AIR

    Features:

    - dial phone number;- call phone number;- send sms;- send email (attachments supported).

    Important! Be shure you are using latest version of AIR SDK. This ANE builded for 15.0.356

    How to use:

    Connect com.illuzor.extensions.CommunicationExtension.ane file to your android air project. Import com.illuzor.communicationextension.CommunicationExtension;

    1) Phone:

    1. CommunicationExtension.phoneSupported; // boolean. Is device supported phone function.

    2. CommunicationExtension.phoneCall("123456789"); // dial number

    3. CommunicationExtension.phoneCall("123456789", true); // call number immediately.
    4. // IMPORTANT! Immediately call required permission:
    5. // <uses-permission android:name="android.permission.CALL_PHONE" />
    复制代码

    2) SMS:

    1. CommunicationExtension.sendSMS("123456789", "Your message text");
    复制代码

    3) Email:

    1. CommunicationExtension.sendEmail(["adress@example.com"], "Email subject", "Your email text");
    2. // or multiple adresses
    3. CommunicationExtension.sendEmail(["adress@example.com", "adress102@example.ws", "adress247@example.ru"], "Email subject", "Your email text");
    4. // or with attachments (one or multiple)
    5. var file1:File = ...;
    6. var file2:File = ...;
    7. CommunicationExtension.sendEmail(["adress@example.com"], "Email subject", "Your email text", [file1, file2]);
    复制代码

    4) Dispose. If you don`t need extension after use, dispose it:

    CommunicationExtension.dispose();

    Demo app - http://yadi.sk/d/Se_LR8fm1lgsD







    相关链接:


    https://github.com/illuzor/Android-Communication-Extension-ANE


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
    收藏收藏 分享分享 支持支持 反对反对 微信
    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52695
    钢镚
    1422

    开源英雄守望者

    沙发
     楼主| 发表于 2015-3-2 17:01:11 | 只看该作者
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2024-4-20 11:56 , Processed in 0.050003 second(s), 36 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表