Android Question Can not upload apk to play store due to permission issues.

microbox

Active Member
Licensed User
Longtime User
This will be my first time to put my app on play store...and I appreciate if anyone can give advice how to pass the requirements that google support is requiring me. They gave me a feedback which I don't totally sure what I'm doing wrong, but I believe it mostly regards to the permissions.
Kindly check the link https://support.google.com/googlepl...303#intended&exceptions&invalid&alternatives&
Below is my manifest file (modified)...again thank you for any help you can advice.
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136

AddManifestText(
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:theme, "@style/MyAppTheme")

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#273e6a</item>
        <item name="colorPrimaryDark">#273e6a</item>
        <item name="colorAccent">#273e6a</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
         <item name="android:windowTranslucentStatus">true</item>
    </style>
</resources>
)  
   
AddPermission(android.permission.CALL_PHONE)
AddReceiverText(Service_Code, <intent-filter>
            <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>)
   
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.RECEIVE_SMS)
AddPermission(android.permission.SEND_SMS)

AddReceiverText(Service1,
<intent-filter>
    <action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>)

AddPermission("android.permission.READ_CONTACTS")
AddPermission("android.permission.WRITE_CONTACTS")
AddPermission(android.permission.CAMERA)
 

drgottjr

Expert
Licensed User
Longtime User
no more phone calling. only allowed for system apps (default apps on phone). you can self-install for you own use, but you can't distribute.
 
Upvote 0

microbox

Active Member
Licensed User
Longtime User
Have not yet tried but can I use this..
B4X:
StartActivity(phnsms.Call("PhoneNumber"))
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
whether something works on your device is irrelevant; you can't distribute via play an app that makes calls directly. only an app registered as the default phone caller can. you app can use the default caller via an intent. if you can live with that, change your code and try again. your app may have other issues. the message from google pretty much covers it.
 
Upvote 0

microbox

Active Member
Licensed User
Longtime User
whether something works on your device is irrelevant; you can't distribute via play an app that makes calls directly. only an app registered as the default phone caller can. you app can use the default caller via an intent. if you can live with that, change your code and try again. your app may have other issues. the message from google pretty much covers it.
Thank you for the time.. my app requires to make calls. I thought my code is already making call with the default via intent.
This is the code I used
B4X:
Sub Call()
    Dim i As Intent
    i.Initialize(i.ACTION_CALL,"tel:" & DataCenterMobile ) ' & telnum
    StartActivity(i)
End Sub
 
Last edited:
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
Upvote 0
Top