Hi,
I wrote an app that receives intents which are sent by Tasker. The app worked till I got a new phone with Android 10.
A little test app sends an intent and receives it itself. It was originally written with targetSdkVersion set to 14. In this version it worked (even with the Android 10 phone).
Now I updated to targetSdkVersion 26 and it doesn't work any more.
I read through the forum the last hours... I don't find what's wrong.
What have I to do to make it work with Android 10?
I wrote an app that receives intents which are sent by Tasker. The app worked till I got a new phone with Android 10.
A little test app sends an intent and receives it itself. It was originally written with targetSdkVersion set to 14. In this version it worked (even with the Android 10 phone).
Now I updated to targetSdkVersion 26 and it doesn't work any more.
Manifest:
AddReceiverText(TargetService, <intent-filter>
<action android:name="de.helmutbender.setstatus.NEW_STATUS" />
<data android:scheme="helmut" />
</intent-filter>)
SetReceiverAttribute(TargetService, android:exported, true)
Main:
Sub btISend_Click
Dim myIntent As Intent
myIntent.Initialize("de.helmutbender.setstatus.NEW_STATUS", "helmut://6")
Dim p As Phone
p.SendBroadcastIntent(myIntent)
Log("IntentTester: Intent sent.")
End Sub
TargetService:
Sub Service_Start (StartingIntent As Intent)
Log("IntentTest starting with " & StartingIntent.Action & " : " & StartingIntent.GetData)
Service.StopAutomaticForeground 'Call this when the background task completes (if there is one)
End Sub
I read through the forum the last hours... I don't find what's wrong.
What have I to do to make it work with Android 10?