@Media selector in CSS: how to tell iPhone 3Gs from iPad

Hi all,
I have a question concerning the capabilities of the @media selector.
From what I read in the documentation, @media, in AIR, supports these parameters
- os-platform (IOS, AND, MAC, WIN)
- application-dpi (160 = less than 200; 240=less then 280: 320: more than 280)
how does one tell if the device is iPhone 3gs or iPad?
both are IOS, both have application-dpi less than 200 (163 for iPhone 3, 132 for iPad)
it would be useful to use max-device-width, but I guess it's not supported? it's not working for me...
thanx!

I've just fell on my face with the same problem. Apparently, there is no way to have different styles for iPhone 3GS and iPad inside the same application. @media selector does not let you do that. It wouldn't be a big problem if we could use theme swf files the same way we use them in Flash. But we can't do that either because loading executable code (which the theme swf is) won't work on iOS due to security restrictions. Please correct me if I wrong but it means that you can't have one application binary with different styles for iPhone 3GS and iPad.
What makes it worse, it is not that easy to reorganize your project to build two applications: one for iPhone 3GS, another for iPad using the same application project and different build scripts (ant). It would be possible if we could link a theme compiled as SWC library. But it doesn't seem to work if you have references to skin classes and images in your css. At least after multiple trials I couldn't make it work.
The only solution that comes to mind is to have two application projects: one for iPhone 3GS, another one for iPad. And keep everything else in libraries. I wish I could see its coming earlier so I would organize my project that way from the beginning.
It seems like a major flaw in design of the media selector. And not just because you can't support both iPhone 3GS and iPad in one application. For the same reasons you can't have different styles for iPhone 4/4S and new high resolution iPad (both have 320 dpi screens). It would be pretty easy to fix by just adding an additional tag to the media selector.
I wish I was wrong and there is a solution for this problem already. Please share your experience if you had the same issue.

Similar Messages

  • How to upgrade iphone 3GS from 3.0.1 to 3.1.3

    how to upgrade iphone 3GS from 3.0.1 to 3.1.3
    I dont want to upgrade it to 4.0 yet.
    Just up to 3.1.3 from 3.0.1
    how can i do it.

    That's because Apple is no longer signing v3.1.3 nor any firmware other than iOS4.  You could try following a downgrade to v3.1.3, see these:
    http://discussions.apple.com/search.jspa?threadID=&q=Downgrade+iPhone&objID=c201 &dateRange=last30days&userID=&numResults=30&rankBy=10001
    This guide works for 3G but not 3GS, though there are some suggestions for 3GS users in there:
    http://m.lifehacker.com/5572003/how-to-downgrade-your-iphone-3g%5Bs%5D-from-ios- 4-to-ios-313

  • How to unlock iphone 3gs from vodaphone network

    I have an Iphone 3gs that is locked to vodaphone currently. When I asked for it to be unlocked from vodaphone they said it was not eligible. The phone was on ready to go service and I was with them long enough to then move network if I wanted to do so. Any ideas how to get the phone unlocked. I have given the phone to my son but he can't use it.

    Sorry yeah it is from Ireland. I have sent Vodaphone a request form online with the IMEI number which they say will take 7-11 days to return. From my previous attempts I don't hold out much hope.

  • HT5554 How to tell iphone 4 from 4s

    How do i know what i have. By serial number?

    Settings > General > Siri
    If you see this, it is a 4S

  • How to update iphone 3gs from ios 4.1 to latest available version?

    Hi
    My daughter has bought a 3gs which is currently running 4.1. Can it be updated any further and how would she do this? when the phone is plugged into iTunes and we click the update button is just says iTunes is running the latest version and doesn't update the phone.
    Can anyone help please?
    Many thanks
    Jen

    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • Tell me please, how to untie iPhone 4s from Softbank?

    Tell me please, how to untie iPhone 4s from Softbank? The fact that, I now live in Russia and I need the iPhone to work with local operators!

    Purchase Softbank...you'll have to own the company in order to get your phone officially unlocked, as they do NOT offer official unlocking for iPhones. Once you own the company, change the policy & you'll have an unlocked iPhone. Although, it might just be cheaper to purchase an officially unlocked iPhone somewhere else.

  • Bought an iphone 3gs from a friend, how do i synce it to my computer now? I cant add any files to my Device sub folders

    I just bought an iphone 3gs from a friend and im trying to synce it to my computer i've tried everything to synce it to my computer  but it wont let me add files to my device sub folder such as musice, movies etc Anyone have any ideads on how i can correct this issue?

    You don't add media (other than music) to your device by dragging.  It's by synching.
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How to mount iPhone 3gs on a macbook pro with maverick ?

    how to mount iPhone 3gs on a macbook pro with maverick ?

    There are unsupported mechanisms of doing what you want. You can search for iTunesFS.
    Garage Band should allow you to send Ring Tones to the 3GS via iTunes - GarageBand '11: Send an iPhone ringtone to iTunes  

  • How to restore the contacts from iPad 2 to iPhone 5? I lost some of my contacts after deleting a closed email account; however I have them all in my iPad!

    How to restore the contacts from iPad 2 to iPhone 5? I lost some of my contacts after deleting a closed email account; however I have them all in my iPad!

    Do you see those in www.icloud.com? Yes- sign in to icloud on the phone.
    No- how did you get those to the ipad?

  • HT1414 C apple i need to know few things,first of all i shall tell my scenario. I got an iphone 3gs from my uncle in US. I m at india k. well , in that iphone it showing activation screen and trying to activate. not more than that..plz help!

    C Apple, i need to know few things,first of all i shall tell my scenario. I got an iphone 3gs from my uncle in US..after long waiting. I m from south india, living at God's country called Kerala k. well , in that iphone it showing activation screen and trying to activate. not more than that..plz help!
    means.. in simple words, it is trying to activate and all( searching wifi,, taking few minutes..again searching...if it couldnt find any wifi - telling .. try connect using itunes an all)...well any way. finally I try connect to a wifi network, with full speed...3mbps..from Ravi's internet cafe in downtown.
    All after Im getting the below message from that white candy box!( thats all I can use now, because, in my dreams iPhone is something great,  that mankind ever seen....but this really disappointed me......im simpling blinking!!(same with itunes too)
    ""Your iphone could not be activated because the activation server is temporarily unavailable. try connecting your iphone to itunes to activate it, or try again in a couple of minutes.
    If this problem persists, contact apple support at apple.com/support""
    EVERYDAY .EVERTIME.. I C this message and sleep....no use.....and i use to charge that 'white candy box' to c this message!
    I try searching internet and all for solutn...but no one knw about it..but there are...some one me abt method called jailbreaking ..rednw..white snw ..ultrasnw and all...I dnt knw why it is so complicated to troublesht...apple is suppose to be simple and friendly.
    C why u manufacturing these stuffz like this, if does'nt serve the any of its purpose ....or useable to any of its features atleast....C i wont be that disapppointed, if u put an option to playbck music or video during activation and all...
    If you are responsible for manfacturing such unuseable thing, then its ur responsible to destroy it too.....
    anyway now everyone knws that ..I have an apple iphone with me, but that doest make me proud at all...
    Finally I have only few questions to ask...
    1 will it work with my vodafone sim in kerala?
    2 is any way , i can hear any music out frm it?
    3 will i become a proud iPhone user?
    I am already fedup with asking questions..begging for an solution.....
    I hope so you can help to figure it out, without any complications....thank u!

    It was not legitimately unlocked by the carrier it was originally locked to. ONLY the carrier it is locked to can authorize unlocking it.
    In order to allow it to be used on a different carrier, the phone was hacked or jailbroken. An unauthorized modification was made to the phone. That modification has damaged the phone. You can not get support for it here or from Apple.

  • I recently changed my apple id and both my iphone 3Gs and Ipad 2 when synced went straight back to my old id name for my app store how do I change it to the new one and keep it that way?

    I recently changed my apple id and both my iphone 3Gs and Ipad 2 when synced went straight back to my old id name for my app store how do I change it to the new one and keep it that way?

    Try going into your account details on iTunes, change your info there, then sync your devices.

  • My brother bought iphone 3gs from u.s..how to use it in india?..help me

    my brother bought new iphone 3gs from u.s..how to use it in india?

    yes.it is unlocked.i could go to homescreens.When i insert sim card it says sim card failure.what should i do?
    Home screen lock is different than carrier lock.
    If the device is locked to a specific carrier for cell service you cannot use a sim from another provider without having the device unlocked. Only the carrier to which the device is locked will be able to unlock the device for service on another provider.

  • How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina?

    How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina? I have a reached in a very high levels at all these games I choose iPad for continuing  played all my saved games in the bigger screen of iPad. Please send step by step the way I can transfer them at the levels I have reached.

    I have installed all the games from my iPhone 3GS at my iPad mini retina throw iCloud. I did what iTunes suggest but when I open the game start from the beginning. For example all the games of team lava company like farm story 2 bakery home design etc I have register and I took storm ID and I have reached in a big level that some times cost money to change level or to buy gems to continue the games.
    I am very angry because before I bought this iPad they told me that I could played my games in a big screen of iPad and this as I can see is nit possible. Apple send me details that didn't help me and everything suggest me is not working.
    I fell stupid because I spend my money in an apple product that isn't what I want and the information I have throw apple are fake

  • Halo, how i do upgrade my iphone 3gs from IOS 4.1 to 4.3? please help

    Halo, how do i upgrade the IOS on my iphone 3GS from 4.1 to 4.3? please help.

    Update it from iTunes on a computer as described at the bottom of this article; devices running an iOS version prior to 5.0 can't be updated straight from the device. It will be updated to the newest iOS release supported by the device’s hardware, which is iOS 6.1.6 for an iPhone 3GS.
    (105295)

  • HT204387 Hello!  Can anyone teach me how to connect iphone 4S to ipad retina using bluetooth. I tried, but the devices won't discover each other at all. I just wanted to connect to share contact details so I don't have to key in one by one.   Many thanks

    Hello!
    Can anyone teach me how to connect iphone 4S to ipad retina using bluetooth. I tried, but the devices won't discover each other at all. I just wanted to connect to share contact details so I don't have to key in one by one.
    Many thanks
    Injin

    You need to go to the App stores and find compatible apps. iOS device do not natively have to ability to transfer info to a computer via BT to a computer.
    With iOS 8 you can use AirDrop

Maybe you are looking for

  • Version 6.1

    je cherche a automatiser un regulateur de temperature,on m'a envoyer des exemples de VI mais il m'est impossible de les ouvrir car je travaille actuellement avec la version 6.1 comment faire Attachments: ._Temperatures+Temps.vi ‏1 KB Temperatures+Tem

  • Membership.ValidateUser works for IE10 but not Firefox

    Earlier today I had no problem, but this afternoon something (and I've no clue what) changed in my Forms Based Authentication setup in SharePoint 2013, so that while I can login to my site using IE10, I can no longer do so with Firefox or Chrome. Ess

  • Set_va_property

    How should I use it in order to change dinamically the visual attributes of my object? What I see is that that the va property is changed(testing it by get_va_property), but my object remains the same. Any suggestion? null

  • HELP ! LCD DISPLAY IS ONLY BLACK AND WHITE ???

    Currently using a macbook pro, on startup the boot up screen is in colour, but when in the operating system everything becomes black and white, have tried all display settings can anyone shed some light on the situation ? Regards Marshy

  • Migration to 3.0 from 2.2

    I currently have APEX 2.2 running few apps. We are currently setting up new database server 11g, which has APEX 3.0 version installed. What would be the best way to migrate my applications from Apex 2.2 to 3.0. Thanks.