damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 803 forks source link

smsDeleteMessage() on read messages. #141

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

import android 

droid = android.Android()

msgs = droid.smsGetMessageIds(False,'inbox')[1]

for msg in msgs:
    droid.smsDeleteMessage(msg)

Okies now, smsGetMessageIds(False,'inbox') must return a list of ids, False as 
in Boolean unreadOnly is set to false, so this must delete all the sms that are 
read, but even with long chain of read SMS text in inbox, it's not really 
removing them all.

Original issue reported on code.google.com by hemanth...@gmail.com on 28 Aug 2011 at 4:10

Copied from original issue: damonkohler/android-scripting#561

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

Happens to me too...

Original comment by yony.ryb...@gmail.com on 16 Nov 2014 at 3:13