System 3: multiple views? present different settings?

Hi,

I am trying to adapt my app to System 3 devices, but I do not have any of those to physically test.

From the simulator it seems that System 3 only supports widgets with a single view, is that correct?

If that is the case, I'd like to present the user with only a subset of settings. I tried to put a different settings.xml in the resource folder (e.g. "resources-vivoactive3"), but that does not work, it still takes the settings.xml from the main resources folder. Is there a way to hide some settings for System 3 devices?

Regards, Robert

Top Replies

All Replies

  • On devices that support glances but they are turned off, does it make sense to return this kind of "overview widget" as on the older devices without glances?

    Yes, if glances are turned off, then your widget app works just like a normal widget on a device without glance support. The top-level view doesn’t accept user input, except for onSelect() (and possibly onMenu()).

    Or can they directly display multiple views, so I can just proceed with presenting multiple views?

    No because just as a widget on a device without glance support, the top level view is displayed as the user scrolls through the widget list, which means that it doesn’t make sense for the top level view to be able to intercept UP/DOWN input (which is already used to scroll through the list.)

    Imagine if you were scrolling through the list of widgets and all of a sudden you were taken into a random widget’s “view loop” without warning.

  • Yes, if glances are turned off, then your widget app works just like a normal widget on a device without glance support.

    Great, then I'll go with checking if either isGlanceModeEnabled is not present or false and then present the overview view. Otherwise I'll directly present multiple views.