Highlighted

Android Permission - understanding ask

Community Beginner ,
May 12, 2019

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

Screenshot_20190512-190108[1].png

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

Views

123

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Android Permission - understanding ask

Community Beginner ,
May 12, 2019

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

Screenshot_20190512-190108[1].png

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

Views

124

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 12, 2019 0
Adobe Community Professional ,
May 12, 2019

Copy link to clipboard

Copied

i don't think that ane works if you use air versions > 21

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 12, 2019 0
Community Beginner ,
May 12, 2019

Copy link to clipboard

Copied

the ane is working, if i set the permissions on the phone to ON

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 12, 2019 0