facebook

Duplicate HTML code generated for Android version: CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #338686 Reply

    tteasdale
    Member

    The iOS version of my app works great but when I converted for Android and resized to accommodate the 7″ screen, Mobione created additional duplicate code in the associate HTML file with a minor difference. The additional code has a 1 added to the app name. For example:

    Original Code

    <div id=”m1-AppName-lst_Race_date”
    class=”m1-text m1-active-color-3 m1-font-21″>Date</div>

    Additional Code

    <div id=”m1-AppName1-lst_Race_date”
    class=”m1-text m1-active-color-3 m1-font-21″>Date</div>

    So in the HTML file, I have the correct section starting with <!– ***** AppName ***** –> and then below all of that correct code starts the next duplicate section with <!– ***** AppName1 ***** –>. I have manually removed the duplicate code but it then of course states that it was manually altered and reduplicates the additional code. As you can imagine, this does not allow my application to operate properly. Please help.

    #338698

    Hi tteasdale,

    Thanks for reporting this issue. What mobione version are you using? Does this also happen if you create a new file and generate code for your android app?

    #338700

    tteasdale
    Member

    I am using version 2.3.2 with HF1. If I create a new project from scratch, I do not have the same issue.

    #338708

    Hi tteasdale,

    In order to understand and fix the problem faster, can you please do the next:

    backup your html file and then generate new code allowing the html file to be replaced. If the newly generated code still contains duplicate code, please describe a scenario using a new example project that we can run to replicate the problem, so we can dig in and investigate it.

    #338724

    tteasdale
    Member

    Found the problem and its my bad. In the short of it and as I mentioned before, I took my nicely functioning iOS app and converted it to the Android OS and in an effort to keep things separated, I moved/resaved the Android app to a new folder designated for my Android projects. My additional help screens and links, however, I failed to redirect to the new location path causing the generation process to 1) think that the Startup Screen was not correct (should have been a clue) and 2) think I had two sets of the same screens of the same name, thus adding the 1 to differentiate the items/objects in the HTML. Once I corrected the paths and regenerated the code, I no longer got the “Startup Screen” error message and the duplicate code was automatically removed.

    Sorry for taking up your time on my bad coding.

    #338776

    Hi tteasdale,

    Thanks for sharing your success and the reason of your problem, closing thread.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Duplicate HTML code generated for Android version: CLOSED

You must be logged in to post in the forum log in