-
-
Save hhhaiai/562fc4b382be84f8a118e0593581ff98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void deleteSms(Context context, int id, int thread_id) { | |
| try { | |
| context.getContentResolver().delete(Uri.parse("content://sms"), "_id=?", new String[]{new StringBuilder(String.valueOf(id)).toString()}); | |
| context.getContentResolver().delete(Uri.parse("content://sms"), "thread_id=?", new String[]{new StringBuilder(String.valueOf(thread_id)).toString()}); | |
| } catch (Exception e) { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment