Test PhoneCalls dynamicly?

marcel

Active Member
Licensed User
Longtime User
Hi,

I would like to enable the phone call feature when this is available. Currently the program is for example not installable on the Samsung Galaxy tab2 10.1

The telephone call is just a small function of my program.

When I use the phone library with PhoneCall this will be added to the manifest.

android.permission.CALL_PHONE

which will probably makes it inpossible to install for example on the device above.

Would it be possible to dynamicly detect (in code) if the device had the possibility to make a call or not?

How does this work?
 

marcel

Active Member
Licensed User
Longtime User
Look at THIS post.

Have seen that one. But if it has the feature and I use the PhoneCall object from the Phone lib. The manifest add android.permission.CALL_PHONE
again which make the app not usable for the device I mentioned.
 
Upvote 0

marcel

Active Member
Licensed User
Longtime User
You have to add this line to your Manifest (using the Manifest editor)
B4X:
AddManifestText(<uses-feature android:name="android.hardware.telephony" android:required="false" />)

Ok, But if the PhoneCall module add android.permission.CALL_PHONE it won't be blocked by tablets to be able to download?

And it works still on phones?
 
Upvote 0
Top