brunnlechner

Member
Licensed User
The first code was OK, since android:targetSdkVersion="26"
Error: Service Intent must be explicit...

With the others there is no reaction in the Provider APP

Requester App:

B4X:
    Dim in As Intent
    in.Initialize("provider.app.REQUEST","")
    'in.SetComponent("provider.app/.S1")
    in.AddCategory("android.intent.category.DEFAULT")
    in.PutExtra("test","True")
    StartService(in)



Provider App Manifest:
B4X:
AddServiceText(S1, <intent-filter>
   <action android:name="provider.app.REQUEST" />
   <category android:name="android.intent.category.DEFAULT" />
</intent-filter>)
 

Attachments

Last edited:

brunnlechner

Member
Licensed User
This code was OK, since android:targetSdkVersion="26":
B4X:
Dim in As Intent
    in.Initialize("provider.app.REQUEST","")
    'in.SetComponent("provider.app/.S1")
    in.AddCategory("android.intent.category.DEFAULT")
    in.PutExtra("test","True")
    StartService(in)
targetSdkVersion="26 = OK
targetSdkVersion="26: Error: Service Intent must be explicit...

All other attempts did not work

Regards Franz
 
Last edited:

Erel

Administrator
Staff member
Licensed User
Try to add:
B4X:
in.SetPackage("provider.app") 'assuming that this is the target app package name
 

brunnlechner

Member
Licensed User
Thanks Erel, you're the best - it works perfectly again.

B4X:
Dim in As Intent
in.Initialize("provider.app.REQUEST","")
in.SetPackage("provider.app") 
in.AddCategory("android.intent.category.DEFAULT")
in.PutExtra("test","True")
StartService(in)
 
Top