Send SMS QPython

Peter3 picture Peter3 · Nov 17, 2014 · Viewed 7.2k times · Source

So i am rather new to Q Python and android scripting and i am stuck trying to test out sending text messages. i have done some other simple things. here is my code below. the actual script has my own number in it so i am trying to send a message to my self. I am getting an error saying null pointer exception whenever i run it. any ideas or inputs would be great! I have tried using both the android library and the andoridhelper library.

import androidhelper
droid = androidhelper.Android()
droid.smsSend("123456789", "test")

Answer

River picture River · Nov 18, 2014

I think QPython doesn't contain the permission of SEND_SMS, maybe you can try it in QPython3.