On the Air simulator, Capabilities.os say: "Windows 7"
What is weird is that Capabilities.version says "4.1"  I am assuming it is
for Android 4.1.

Also, Capabilities.playerType says: "Desktop"

So, the question now is, if I detect version=4.1 and playerType="Desktop",
can I assume that it is the AIR simulator simulating Android 4.x?

I can make this change in MediaQueryParser.as if no one has objections.

Again, the goal here is to ensure that the CSSMedia queries os-platform and
os-version works so that we can show the correct CSS styles in the AIR
simulator.

For the record, everything works as expected on the device.

Thanks,
Om


On Mon, Aug 11, 2014 at 10:15 AM, Alex Harui <[email protected]> wrote:

> I don't know how this works.
>
> What does the Capabilities.os string say for the simulator?  I'm wondering
> if it leverages the Android SDK somehow.
>
> -Alex
>
> On 8/11/14 10:09 AM, "OmPrakash Muppirala" <[email protected]> wrote:
>
> >Bump...
> >
> >Anyone has any ideas?
> >
> >My only other option would be to ask folks to manually include the
> >android4.css file in their apps.  This will ensure that the skins show up
> >fine in the AIR simulator.
> >
> >Is that approach okay for folks?
> >
> >Thanks,
> >Om
> >On Aug 9, 2014 11:20 PM, "OmPrakash Muppirala" <[email protected]>
> >wrote:
> >
> >> Looking at how Mustella is running the tests.  It seems like the
> >>variable
> >> target_os_name can be set to "android".   How exactly does this work?
> >>Can
> >> I also pass an os version?
> >>
> >> Thanks,
> >> Om
> >>
> >>
> >> On Sat, Aug 9, 2014 at 10:45 PM, OmPrakash Muppirala
> >><[email protected]
> >> > wrote:
> >>
> >>> I am using Maurice's os-platform and os-version CSS media queries to
> >>> implement the new Android 4.x skins via css.  Does anyone know how to
> >>> customize Flash Builder's AIR simulator to report a particular os, os
> >>> version?
> >>>
> >>> As I am trying this out, it seems like a big problem that you can't see
> >>> the correct skins in your AIR simulator.
> >>>
> >>> Anything that I can set in the -app.xml file?
> >>>
> >>> Thanks,
> >>> Om
> >>>
> >>
> >>
>
>

Reply via email to