Wish Hotswap code with widget

Discussion in 'Bugs & wishlist' started by Multiverse app, Jul 21, 2018.

  1. Multiverse app

    Multiverse app Active Member Licensed User

    This has been bothering me for some time now. So almost all of my projects have widgets in them, and there is a very annoying thing that happens when I try to hot-swap the code (ctr+s) (when widgets are added to the home screen)-


    The compiler again tries to create the xml file of the widget again, and so this error occurs. Now I have to recompile the whole project even for small changes, which takes more than 3-4 minutes if I'm working on a big project. Makes working very frustrating.

    Would love a workaround for this in the next update of B4A.
    Thank you!
  2. Erel

    Erel Administrator Staff Member Licensed User

    Change the code to:
    #If Release
    rv = ConfigureHomeWidget(...)
    #end if
  3. Multiverse app

    Multiverse app Active Member Licensed User

    aldready tried, throws this error in Debug mode-

    B4A Version: 8.30
    Parsing code.    (
    Compiling code.    (
    Compiling layouts code.    (
    Organizing libraries.    (
    Generating R 
    file.    Error
    2: error: Error: No resource found that matches the given name (at 'initialLayout' with value '@layout/vr_widget_layout').
    Erel likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice