Hi Friends,
Trying to run a simple SMS example that I found somewhere, but received error.
I found this SMS example somewhere and wanted to try it, but I get
error instead.. so what's wrong?
'Service module
Sub Process_Globals
AddPermission("android.permission.SEND_SMS") (In Manifest)
Dim Sms1 As PhoneSms
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
' ===========================================
Compiling code. Error
Error parsing program.
Error description: Unknown type: phonesms
Are you missing a library reference?
Occurred on line: 4
Dim Sms1 As PhoneSms
'============================================
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
End Sub
'============================================
Sub Button1_Click
Sms1.Send(3105551212,"Android SMS test")
Log("SMS Sent")
End Sub
=============================================
ptw: didn't find "Lib" in the IDE or the designer menus, so could not add a
phonesms library.
Trying to run a simple SMS example that I found somewhere, but received error.
I found this SMS example somewhere and wanted to try it, but I get
error instead.. so what's wrong?
'Service module
Sub Process_Globals
AddPermission("android.permission.SEND_SMS") (In Manifest)
Dim Sms1 As PhoneSms
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
' ===========================================
Compiling code. Error
Error parsing program.
Error description: Unknown type: phonesms
Are you missing a library reference?
Occurred on line: 4
Dim Sms1 As PhoneSms
'============================================
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
End Sub
'============================================
Sub Button1_Click
Sms1.Send(3105551212,"Android SMS test")
Log("SMS Sent")
End Sub
=============================================
ptw: didn't find "Lib" in the IDE or the designer menus, so could not add a
phonesms library.