Android Question Start App from Service Module

tomoshea

Member
Licensed User
Longtime User
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

Code: Copy
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
Code: Copy
If startingIntent.Action = "android.provider.Telephony.SMS_RECEIVED" Then
in
Sub Service_Start(startingIntent As Intent)

gives an error 'Unknown member:Action'

Any help would be greatly appreciated.
Thank you,
Tom
 
Back
Top