Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Sending SMS Message: uid 10363 does not have android.permission.SEND_SMS

Scary Swan answered on April 9, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • No persistable permission grants found for Uri content://com.android.providers.media.documents/document/audio:
  • The authenticated user doesn't have permissions to upload and set custom video thumbnails.

  • Sending SMS Message: uid 10363 does not have android.permission.SEND_SMS

    0

    So I had to create an app to send and receive messages but the send action crashed whenever I clicked on send even though the permission was granted. I had requested runtime permissions and allowed them, still, faced a crash that the process doesn't have the requested permission to send SMS. I checked the granted permissions from :

    The order of my request for permissions was

    RECEIVE_SMS

    SEND_SMS

    I reverted the order of request and it works fine. This was tested with a completely new app(uninstall-> install -> test). The answer may seem weird but just give it a shot.

    (If it works in the shown way in a certain order, then Android might have a bug!!) 


    Here is a sample of code that grants permission in the MainActivity class on the Android Project and the CORRECT order.

    Answer Supported By: Partha Sarathi Murmu

    Popularity 3/10 Helpfulness 1/10 Language whatever
    Tags: sms uid whatever
    Link to this answer
    Share Copy Link
    Contributed on Apr 09 2023
    Scary Swan
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.