Android Question widget CreateRemoteViews error

sigster

Active Member
Licensed User
Longtime User
Hi
I upgrade to B4a version 12.20 and know I get this error when I try to compile my widget


WidgetService - 26: CreateRemoteViews can only be called inside a Receiver module.

B4X:
Sub Service_Create
        rv = ConfigureHomeWidget("main2", "rv", 120, "Date time",True)       
End Sub

Regards
Sigster
 

DonManfred

Expert
Licensed User
Longtime User
Widgets now uses a receiver instead of a service.
 
Upvote 1
Solution
Top