konradwalsh Active Member Licensed User Longtime User Mar 1, 2016 #1 Hey I have a project with a widget For testing purposes, I put a refresh button on the widget If I press the fresh button, it successfully calls Code: Copy rv.UpdateWidget But if I try to use Code: Copy SPWidget.rv.UpdateWidget from main it wont work and also gives an error: (RuntimeException) java.lang.RuntimeException: RemoteViews should be set by calling ConfigureHomeWidget. Click to expand... I am testing this in Release mode. I have read all the threads and download samples to see how others have done this but I still can't get rid of this error
Hey I have a project with a widget For testing purposes, I put a refresh button on the widget If I press the fresh button, it successfully calls Code: Copy rv.UpdateWidget But if I try to use Code: Copy SPWidget.rv.UpdateWidget from main it wont work and also gives an error: (RuntimeException) java.lang.RuntimeException: RemoteViews should be set by calling ConfigureHomeWidget. Click to expand... I am testing this in Release mode. I have read all the threads and download samples to see how others have done this but I still can't get rid of this error
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2016 #2 You should use CallSubDelayed: Using CallSubDelayed to interact between activities and services Call a sub in the service that will then call rv.UpdateWidget. Upvote 0
You should use CallSubDelayed: Using CallSubDelayed to interact between activities and services Call a sub in the service that will then call rv.UpdateWidget.
konradwalsh Active Member Licensed User Longtime User Mar 1, 2016 #3 Thank you ! Thats sorted that out... Upvote 0