Android Question What would cause a widget from not updating in designer

Bryan

Member
Licensed User
Longtime User
I designed a widget in designer and it always been working perfectly. Just now I wanted to make changes to it's design. I opened it in designer added another panel on top of my main panel, added 2 buttons, and an editbox to the new panel and saved. Compiled and ran. Reloaded my widget on the device and I still have my old widget still showing up. I decided to uninstall my app and compiled and run and still same problem my newly revised widget will not be displayed, only my previously designed one is. What would be causing this?

Bryan
 

Bryan

Member
Licensed User
Longtime User
Are you sure that the second panel is a child of the first panel? The widget layout is made of the first panel only.
Yes, I created it under the first panel. It's is like this Panel1 parent is Activity, Panel 2 parent is Panel1, 2 buttons and Editbox parent is panel 2. All are set to being visible. My original widget layout is one label and two buttons on panel1. I'm using the original layout file just adding additional items.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
some changes require to remove the app & widget first before compilation otherwise it doesn't show the changes.
(I also wasted some time due to this once :) )
 
Upvote 0

Bryan

Member
Licensed User
Longtime User
If you like you can upload your project and we will try it.
I have found the problem. I write protected my projects "res" folder to prevent B4A from making changes to it. There were several files I needed to remove write protection from in order to get my Widget to show my changes. I believe I write protected the res folder because I modified my theme and have a custom actionbar. Someone mentioned in the forum that you needed to write protect the res folder so B4A would not alter my changes.
 
Upvote 0
Top