Android Question Having problems with widgets

NeoTechni

Well-Known Member
Licensed User
Longtime User
B4X:
Sub Service_Create
   'Set the widget to update every 10 minutes.
   Log("l1.bal exists: " & File.Exists(File.DirAssets, "l1.bal"))
   rv = ConfigureHomeWidget("l1", "rv", 10, "SCIFI UI WIDGET",True)'WHY IS THIS FAILING?!!!
   mAppWidgetIdList.Initialize
   PE.Initialize("PE")
End Sub

Results in:


But only in debug mode...
This is the same code I used in another app, and was the same bal file. I went into the designer and removed all the files out of it, thinking a missing one triggered the error but even without any files I get the error.

I wrapped it in a try/catch, and now I get this:


;_;
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…