Hi,
I'm trying to control my B4A-App with tasker. Tasker sends an intent to my App, but it seems not to recieve it.
I read e.g. https://www.b4x.com/android/forum/threads/20103/#content and https://www.b4x.com/android/forum/threads/31136/#content.
I think I've done anything to recieve the broadcast, but when I trigger the intent with tasker, nothing happens. It seems I missed something relevant.
My manifest includes:
My service WebSend includes:
The service is called from Main to send the status update to a web server (InitiateWebUpdate), too.
When I trigger the Update from the App, it's working. When I send the intent from tasker, it doesn't log anything.
tasker has the following definition:
What do I do wrong?
I'm trying to control my B4A-App with tasker. Tasker sends an intent to my App, but it seems not to recieve it.
I read e.g. https://www.b4x.com/android/forum/threads/20103/#content and https://www.b4x.com/android/forum/threads/31136/#content.
I think I've done anything to recieve the broadcast, but when I trigger the intent with tasker, nothing happens. It seems I missed something relevant.
My manifest includes:
B4X:
AddReceiverText(WebSend, <intent-filter>
<action android:name="de.helmutbender.setstatus.NEW_STATUS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>)
My service WebSend includes:
B4X:
Sub Service_Start (StartingIntent As Intent)
Log("Starting WebSend with " & StartingIntent.Action & " : " & StartingIntent.GetData)
If StartingIntent.Action = "de.helmutbender.setstatus.NEW_STATUS" Then
Dim s As String = StartingIntent.GetData
Log("NEW_STATUS to " & s)
If IsNumber(s) Then
CallSubDelayed2(Main, "ChgStatus", s)
Else
Log(" => is not a number!")
End If
Else
InitiateWebUpdate
End If
End Sub
The service is called from Main to send the status update to a web server (InitiateWebUpdate), too.
When I trigger the Update from the App, it's working. When I send the intent from tasker, it doesn't log anything.
tasker has the following definition:
B4X:
Action: de.helmutbender.setstatus.NEW_STATUS
Type: Default
Data: [e.g.] 6
Target: broadcast receiver
What do I do wrong?