Android SecurityException READ_SMS Failure Resolution

I am really working on a simple application that reads SMS from a phone and then sends one of them to another phone.

That I have recreated this project in Android Studio. There are no errors of anything like this in the code, but if I run it, then the following warning is thrown in my logic:

java.lang.RuntimeException:
Unable to start activity ComponentInfo{com.example.android.fetchinboxsms/
com.example.android.fetchinboxsms.MainActivity}:
java.lang.SecurityException: Permission Denial: 
opening provider com.android.providers.telephony.SmsProvider from 
ProcessRecord{ebd2075 2443:com.example.android.fetchinboxsms/u0a59} (pid=2443, uid=10059) 
requires android.permission.READ_SMS or android.permission.WRITE_SMS

      

I have given permission READ_SMS

in my manifest file, so why is this error occurring? Any suggestions?

+3
android permissions


source to share


No one has answered this question yet

See similar questions:

2
Why does Android ignore READ_SMS permission?

or similar:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
1786
Ssh error "permissions too open"
52
Android - file provider - permission denied
42
Android KitKat securityException when trying to read from MediaStore
35
Resolution denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord in Android Studio
nine
SecurityException: permission denied error
-five
Onclick () error resolution error



All Articles
Loading...
X
Show
Funny
Dev
Pics