how to resove smsSend() error in sl4a python

2019-09-04 11:37发布

问题:

i am using Android , i want to send sms using this sl4a python code: it is related to my project.

 import android
 droid = android.Android() 
 number = droid.dialogGetInput('Send SMS', 'Phone Number?').result
 message = 'Test SMS' 
 result = droid.smsSend(number, message)

it is working on android AVD but not in Android Phone...?