【发布时间】:2018-10-12 02:40:12
【问题描述】:
我想检索所有短信并在显示屏上显示。我使用 QPython 编写了一个代码,但它不适用于 kivy,所以我需要知道适用于 Kivy 的 python 代码。
我在 Qpython 上运行的代码:
import androidhelper as myandroid
droid = myandroid.Android()
id1 = droid.smsGetMessages(unreadOnly=False,folder='inbox',attributes=None).result
for items in id1[0:]:
inbox_add=str(items.get("address").encode("utf-8"))
inbox_sms=str(items.get("body").encode("utf-8"))
read_sms=str(items.get("read"))
sms_date=str(items.get("date"))
帮我解决它或建议我另一种方法。
提前致谢
【问题讨论】: