Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Android ANE. Phone, SMS, Email functionality.

Notifications You must be signed in to change notification settings

illuzor/Android-Communication-Extension-ANE

Repository files navigation

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 21

How to use:

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

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

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

CommunicationExtension.phoneCall("123456789", true); // call number immediately.
// IMPORTANT! Immediately call required permission:
// <uses-permission android:name="android.permission.CALL_PHONE" />
  1. SMS:
CommunicationExtension.sendSMS("123456789", "Your message text");
  1. Email:
CommunicationExtension.sendEmail(["adress@example.com"], "Email subject", "Your email text");
// or multiple adresses
CommunicationExtension.sendEmail(["adress@example.com", "adress102@example.ws", "adress247@example.ru"], "Email subject", "Your email text");
// or with attachments (one or multiple)
var file1:File = ...;
var file2:File = ...;
CommunicationExtension.sendEmail(["adress@example.com"], "Email subject", "Your email text", [file1, file2]);
  1. Dispose. If you don`t need extension after use, dispose it:
CommunicationExtension.dispose();

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

demoAppQR.gif

About

Android ANE. Phone, SMS, Email functionality.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published