On Nov 30, 2013 4:30 PM, "Maurice Amsellem" <maurice.amsel...@systar.com>
wrote:
>
> Hi,
>
> Unfortunately,  Capabilities.os on Android returns the Linux kernel
version, not the Android version.
>
http://stackoverflow.com/questions/11293236/how-can-i-detect-the-android-os-version-in-adobe-air
>
> The workaround is to get the info form a system file called
/system/build.prop
> As described in:
> https://github.com/funky-monkey/Android-Native-Device-Info
>
> These is no licencing information associated with the code.
>
> Possibilities:
> - contact the author and ask for donation of the code to AF
> - "borrow" the idea (reading system/build.prop) and re-implement the
parse code, shouldn't be that difficult.
>
> What do you think?

I think that as long as we don't copy the code, we should be good.

>
> Note: of course, getting the version of Android is not required for
managing iOS7 status bar.
> I am raising this issue because Om once mentioned that css media query
os-version would be useful for Android as well, to apply different skins to
different versions of Android.
> It's also required for completeness, so that os-version returns
consistent results on Android as well.

I was really hoping that you would implement this for Android as well :-)

Thanks,
Om

>
> Maurice
>
> -----Message d'origine-----
> De : Maurice Amsellem [mailto:maurice.amsel...@systar.com]
> Envoyé : samedi 30 novembre 2013 21:43
> À : dev@flex.apache.org
> Objet : RE: IOS7 status bar management ( FLEX-33860)
>
> I discovered in CSS Media specs the 'min' and 'max' operators, so IOS
version categories are not needed anymore.
>
> I have added a new css media property called 'os-version' of type Number.
>
> And this is how to condition styles for IOS6 and IOS7:
>
> ISO6:
> @media (os-platform: 'IOS') and (max-os-version: 6.5)
>
> IOS7:
> @media (os-platform: 'IOS') and (min-os-version: 7.0)
>
> It would work the same for Android...
>
> Maurice
>
> -----Message d'origine-----
> De : Maurice Amsellem [mailto:maurice.amsel...@systar.com]
> Envoyé : samedi 30 novembre 2013 16:11
> À : dev@flex.apache.org
> Objet : RE: IOS7 status bar management ( FLEX-33860)
>
> Back to this issue.
>
> I am working on adding os-version capability to MediaQueryParser.
>
> My first intention was to implement it that way:
> os-version >= 7.0
>
> But it appears that CSS Media only support equality operator ( : ) , so
version should be a category rather than a figure.
>
> For  iOS, it would be more like :
>
> os-version: 'ios6-' | 'ios7+'
>
> ios6- = ios 6 or less
> ios7+ = ios 7 or more
>
> (until Apple decides to change its ios design again :-( ) .
>
> For Android, what would be the relevant classes ?
>
> Regards,
>
> Maurice
>
> -----Message d'origine-----
> De : omup...@gmail.com [mailto:omup...@gmail.com] De la part de OmPrakash
Muppirala Envoyé : dimanche 3 novembre 2013 21:36 À :
dev@flex.apache.orgObjet : Re: IOS7 status bar management (
FLEX-33860)
>
>

Reply via email to