Security Exception while implementing global search for Messaging
Posted
by Sunil
on Stack Overflow
See other posts from Stack Overflow
or by Sunil
Published on 2010-04-16T11:47:11Z
Indexed on
2010/04/16
14:53 UTC
Read the original article
Hit count: 207
android
I am trying to enable global search for messaging application (i.e., messages can be searched from home screen search box). I have followed all the steps given in
http://developer.android.com/reference/android/app/SearchManager.html
I am getting the following exception
04-16 12:49:26.917: ERROR/DatabaseUtils(102): java.lang.SecurityException: Permission Denial: reading com.android.providers.telephony.MmsSmsProvider uri content://mms-sms/search_suggest_query/m?limit=58 from pid=106, uid=10000 requires android.permission.READ_SMS
I have set permission in MmsSmsProvider.java file for read, write sms and global search, but still I get this error.
Can anyone help.
Regards, Sunil.
© Stack Overflow or respective owner