• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Android Permission - understanding ask

Community Beginner ,
May 12, 2019 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

211

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
community guidelines
Community Expert ,
May 12, 2019 May 12, 2019

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Community Beginner ,
May 12, 2019 May 12, 2019

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines