weasleyr / python-for-android

Automatically exported from code.google.com/p/python-for-android
0 stars 0 forks source link

smsDeleteMessage() on read messages. #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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 8 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 8 years ago

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