CIQ3 menu2 for multi device app

Hi all,

I think this is a very stupid question, but I don't know how to solve this:

I try to implement the new menu2 but want to keep the app for many devices, also for CIQ1 ones like the VA.
When I try to build the menues via resource files, the VA won't start. When I try to build the menu in the code, the memory overflows on the VA.

Is there any possibility to solve this, or do I need to create a separate app for the older devices?

Regards
Andy
  • Two easy ways to solve this:
    1) use jungles and build differently for devices with Menu2 and those without. One app, with either a different .mc file, or with a single source using excludeAnnotations
    2) use a "has" for Menu2, and use the Menu if it's false. I set a boolean when the app is starting.

    Or, you could just stay with Menu.

    I'm using #2 right now, as with FW changing, I don't need to monitor what CIQ version is on which devices (including APAC variants). It depends on how much available memory you have, especially with CIQ1 devices.
  • Thank you Jim!
    I tried 2) as well, with a "if" not a has, but this should be the same... But: When I build a Menu2 resource I can't build a CIQ1 version, because it says, that for this device Menu2 is not allowed. When I build it in the code, the memory runs over... Do I miss anything or am I just too dump? :)

    Thank you again!
    Andy
  • "I tried 2) as well, with a "if" not a has, but this should be the same."

    Not the same. You need to use a has, like

    hasMenu2=(Ui has :Menu2);


    then something like this when preparing the menu. You'll need to have the proper delegate for the two. (two different delegates)
    if(hasMenu2) {
    //use Menu2
    } else {
    //use Menu
    }


    I do this with a boolean I set once, as "has" can be an expensive thing to do and it doesn't change while an app is running
  • You'll need to have the proper delegate for the two. (two different delegates


    thats the hint I needed... I did it within the same delegate for both and wondered that the memory grown over 14kb while I implemented two menus...

    Thanks man!