BackupGGCode / python-for-android

Py4A
Apache License 2.0
0 stars 1 forks source link

smsDeleteMessage() on read messages. #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 5:37

GoogleCodeExporter commented 9 years ago
This is an sl4a issue.
See http://code.google.com/p/android-scripting/

Original comment by rjmatthews62 on 3 Apr 2012 at 2:24

GoogleCodeExporter commented 9 years ago

Original comment by rjmatthews62 on 3 Apr 2012 at 2:24