Hi,
I have a service module that intercepts SMS messages from a particular number and updates a table in a database. That part works fine - now I want the service module to start another app whenever a message is received.
I cannot use something like
because when I add the phone library the following line
in
Sub Service_Start(startingIntent As Intent)
gives an error 'Unknown member:Action'
Any help would be greatly appreciated.
Thank you,
Tom
I have a service module that intercepts SMS messages from a particular number and updates a table in a database. That part works fine - now I want the service module to start another app whenever a message is received.
I cannot use something like
B4X:
Dim in As Intent
Dim pm As PackageManager
in = pm.GetApplicationIntent("com.xtralogic.android.rdpclient.trial")
If in.IsInitialized Then
in.SetComponent("com.xtralogic.android.rdpclient.trial/.HelpActivity")
StartActivity(in)
End If
because when I add the phone library the following line
B4X:
If startingIntent.Action = "android.provider.Telephony.SMS_RECEIVED" Then
Sub Service_Start(startingIntent As Intent)
gives an error 'Unknown member:Action'
Any help would be greatly appreciated.
Thank you,
Tom