2
是否有可能在后台使用smsInterceptor?我试图使用服务,但它不会工作,它不会在MessageReceived事件上为我发短信给我。smsInterceptor在后台?
'Service module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim smsint As SmsInterceptor
End Sub
Sub Service_Create
smsint.Initialize("smsint")
End Sub
Sub Service_Start (StartingIntent As Intent)
StartServiceAt("", DateTime.Now + 30 * DateTime.TicksPerSecond, True)
End Sub
Sub Service_Destroy
End Sub
Sub MessageReceived (From As String, Body As String)
ToastMessageShow(From & " - " & Body, True)
End Sub
这可能是错误的寿,我还没有想出如何做到这一点。阅读服务模块线程,但没有得到我的任何地方:/
呵呵,谢谢。此外,我忘记将smsint_放在MessageReceived前dd 感谢您的快速响应。 – Adam