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

  • RequesterApp.zip
    473.7 KB · Views: 77
  • ProviderApp.zip
    480.2 KB · Views: 78
Last edited:

DonManfred

Expert
Licensed User
Do you get any error? WHICH one?
What exactly is the question?
 
Upvote 0

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:
Upvote 0

OliverA

Expert
Licensed User
Are you also writing the provider app or is it third party?
 
Upvote 0

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)
 
Upvote 0
Top