Copy link to clipboard
Copied
Hi Guys!
I am quite new to actionscript and have an understanding question about the android permissions.
I want to start a phone call with a button. Im am using an ANE.
The phone number is in an textfield, called "tel"
anrufen.addEventListener(MouseEvent.CLICK, call);
function call(e: Event): void {
CommunicationExtension.phoneSupported;
CommunicationExtension.phoneCall(tel.text, true);
}
In the xml file I have set the permissions
<uses-permission android:name="android.permission.CALL_PHONE"/>
If I am testing the film on the phone no call can be made because thepermissions are turned off
Should the permissions on the phone not be turned on or should not appear a security warning on the phone, if they are set in the xml?
How can the permissions be set in as3, so that they are turned on after the publication on the phone?
I am using AIR 32.0
Greets
Copy link to clipboard
Copied
i don't think that ane works if you use air versions > 21
Copy link to clipboard
Copied
the ane is working, if i set the permissions on the phone to ON