- Jun 6, 2020
- 11,559
- 4,422
guys,
I need some help before I start beleveing to ghosts and get completely crazy. some time ago I opened a case
[H3]
Hi guys, I am getting crazy while trying to modify my app working widget. The widget is very simple and has been working for months. Now I am tryng to modifiy but whatever Views I add in the L1 layout if I try to SetVisibility in the code I get : Widget Error
NoSuchFieldException)...
but despite some good tips from @udg I could not find the problem and since it was not urgent I just decided to postpone the analisys.
last week end I had some time and restarted the investigation but I found some even more unexplicable (for me at least) behaviors.
the intial evidence was (as described in the initial post) and still is, that I could/I cannot update the widget. so if I add a view (say a label) in the bal file and then in the widget service I call a rv.settext for that label the widget complains that the view does not exist issuing :
Widget Error
NoSuchFieldException) java.lang.NoSuchFieldException: widgetservice_label1
so I thought...ok let's rename the bal file and update the rv = ConfigureHomeWidget("l1", "rv", 60, "My Widget") call. but I had the same result...
I need some help before I start beleveing to ghosts and get completely crazy. some time ago I opened a case
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Hi guys, I am getting crazy while trying to modify my app working widget. The widget is very simple and has been working for months. Now I am tryng to modifiy but whatever Views I add in the L1 layout if I try to SetVisibility in the code I get : Widget Error

برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
but despite some good tips from @udg I could not find the problem and since it was not urgent I just decided to postpone the analisys.
last week end I had some time and restarted the investigation but I found some even more unexplicable (for me at least) behaviors.
the intial evidence was (as described in the initial post) and still is, that I could/I cannot update the widget. so if I add a view (say a label) in the bal file and then in the widget service I call a rv.settext for that label the widget complains that the view does not exist issuing :
Widget Error

so I thought...ok let's rename the bal file and update the rv = ConfigureHomeWidget("l1", "rv", 60, "My Widget") call. but I had the same result...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید