How do you get permissions from ANDROID?

getLine1NumberForDisplay: Neither user 10408 nor current process has android.permission.READ_PHONE_STATE, android.permission.READ_SMS, or android.permission.READ_PHONE_NUMBERS

When a phone call starts I can't activate Activity starter set with these values ​​Action:android.intyent.action.cal datauri:tel:123456789 (should be replaced by the actual number). In other words, when a call starts Activity starter must be started to open the Dialer and then activate the speakerphone. Can someone give me a hand (an example of blocking, perhaps), please? Thanks

Having launched your App, run a Block (Procedure) that requests those permissions.

Additionally those permissions must be available in the manifest of your app, therefore

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Try rhe phone call component, which provides the necessary permissions in the manifest

Taifun

What about following the previous advice?

Your list handling is quite cumbersome... you are storing a list with n items in the first item of a list... just store the n items directly in the list...

Do some tutorials to learn the basics

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

And as you are using the telephonymanager extension make sure to use the latest version

Taifun

1 Like

good evening, I can't get permissions from android(Neither user 10408 nor current process has android.permission.READ_PHONE_STATE, android.permission.READ_SMS, or android.permission.READ_PHONE_NUMBERS). My goal is to create an app that allows you to record an incoming and outgoing phone call and then save it. I need a kind soul to put me on the right path by making suggestions or changes to the attached block. Thanks

See Q2 from here App Inventor Extensions: Telephony Manager | Pura Vida Apps
Does the example project downloadable from here

work for you?

You forgot to let us know, which version of the extension you are using

And: what Android device and Android version are you using for your tests?
Did you test after building using the apk file?

Taifun

com.puravidaapps.TaifunTM.aix
tm
Android 13

yes, I ran the tests with the apk file. I use redmi note 10 (Xiaomi) with android version 13. The problem remains, I can't get permissions from Android

Let me ask again

Taifun

yes, I ran the tests with the apk file. I use redmi note 10 (Xiaomi) with android version 13. The problem remains, I can't get permissions from Android

the sample project is not working for me

Finally after 15 posts...
I will do some tests again soon

Taifun

did you solve the permission issue in ANDROID?.As previously posted with your extension I can't get permissions(READ_NUMBER.PHONE...) from ANDROID.

I just tested the latest version 10 of the extension again and after building it works without any issue on Samsung Galaxy A54 running Android 14.

unknown

Here is a link to the apk file to download tm.apk - Google Drive. Please test on on your device

Taifun