Sms sender starter tutarial

behzad.robot

New Member
Hi i'm kinda new to basic4android but it seems fun anyway i was wondering how to send a sms by application then i found out the page in documentation(Phone page)and all those stuff it seemed like that only a permission the calling a function will do it but it wont ! :sign0085::sign0148: so after that i checked some threads in forum but they were so messed up i couldn't get my answer so can anyone help me?I'm actually looking for a code which can help and say what to do from the beginning to end to send a sms!:sign0104:
 

behzad.robot

New Member
Hmm that seems a lot easier than i thought it would be....(or i had seen i others threads!):SHOCKED: Thank u very much by the way i also added SEND_SMS permission in manifest editor although i was not getting any error in sdk's emulator!:sign0162:
 
Upvote 0

b4anewbie

New Member
I get error when compiling !!!

Compiling code. Error
Error parsing program.
Error description: Unknown type: phonesms
Are you missing a library reference?
Occurred on line: 25
Dim s As PhoneSms



Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.

End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub




Sub Button1_Click
Dim s As PhoneSms
s.Send ("1111111" , "hiiiiiiiiiiii")
End Sub
 
Last edited:
Upvote 0
Top