Skip navigation
Currently Being Moderated

Exclude iPad 3

Sep 6, 2012 8:05 PM

Tags: #mobile #ios #descriptor #flash_builder_4.6 #ipad3

I know that I can exclude the ipad or iphone if I delete one of these rows:

<key>UIDeviceFamily</key>

                              <array>

                                        <string>1</string>

                                        <string>2</string>

                              </array>

 

1 = iPhone

2 = iPad

 

Is it possible to exclude the iPad 3 but not the older iPad versions?

 
Replies
  • Currently Being Moderated
    Sep 6, 2012 8:06 PM   in reply to grosssmutttr

    Not in that way, What's the problem you're trying to solve?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 8:20 PM   in reply to grosssmutttr

    Look at what I say to do in this thread:

     

    http://forums.adobe.com/message/4455486#4455486#4455486

     

    only instead of pointing to the iOS 5.1 SDK, point to the iOS 5.0 SDK. That will let you publish the app so that it runs as regular iPad size on the iPad 3.

     

    Alternately, you could set the resolution to Standard in the publishing settings. That would be the easiest way to make the iPad 3 work at normal iPad size, but you would be giving up Retina for the iPhone 4.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 8:41 PM   in reply to grosssmutttr

    Yes, set that to standard. If you're just doing an iPad app that's all you'll need to do to fix the issues. If you're also doing iPhone you have the choice of giving up on Retina, or doing the iOS 5.0 SDK trick I mentioned.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 8:58 PM   in reply to grosssmutttr

    If you set standard then the quality on iPad 3 will be the same as iPad 2, which is what you want. But also, the quality on iPhone 4 will be the same as on iPhone 3GS. Both iPad 3 and iPhone 4 users will be able to buy the app, and it will work fine, just not in as high quality as those devices can do.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 9:24 PM   in reply to grosssmutttr

    Hi,

     

    To point to iOS 5.0 SDK using FB 4.6, goto Project Properties>Flex Build Packaging>Apple iOS.

    Select the Native Extensions tab and you will see a field named Apple iOS SDK. You can give the path to iOS 5.0 SDK there.

     

    Regards,

    Neha

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 9:30 PM   in reply to grosssmutttr

    The iPhone 4 would be the same as the 3gs, not the other way around. You would need to make your stage be 480x320, then it would work for both devices, if you have the resolution set to standard.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 9:33 PM   in reply to grosssmutttr

    Yes. In Flash Builder 4.6, this option is only supported on Mac, as platformsdk switch was not supported on Windows at the time of FB 4.6 release.

    If you are packaging on Windows, you will have to use the command line or the Flash Builder 4.7 beta version to package your application.

     

    Regards,

    Neha

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 10, 2012 4:46 AM   in reply to grosssmutttr

    Sure.

    <path to AIR SDK folder>\bin\adt –package –target ipa-app-store –provisioning-profile <path to .mobileprovision file> -storetype pkcs12 –keystore <path to your p12 certificate> -storepass <certificate password> xxx.ipa <path to application.xml> -C <parent folder of your swf> <name of swf> <all other resources/resource directories separated by spaces> -extdir <path to the folder containing any native extensions being used in the application>  -platformsdk <path to iOS SDK>

     

     

    Regards,

    Neha

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 9:56 PM   in reply to grosssmutttr
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2012 7:19 AM   in reply to Colin Holgate

    Can I just ask a question related to this.

     

    If I have developed a game for iPad only with movie dimensions 1024 x 768 and have the Resolution set to High, will this mean that it will display as a small window on iPad3?

     

    I had set the resolution to high thinking it would make my graphics look as good as possible but if it is going to make the game appear in a small window on iPad 3 then this is no good.

     

    So basically my question is what resolution should I used for an iPad only game that has all the graphics and movie dimensions at 1024 x 768?

     

    Standard or High?

     

    I have render mode to auto and device set to iPad.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2012 7:26 AM   in reply to P Steven

    What you do depends on the stage scale mode you've used. If you're using no_scale, then your 1024x768 stage will occupy the top left quarter of the Retina screen. If you use show_all or no_border, then the stage will scale to fill the Retina screen. It will also show any extra detail you have in there. So, if you have use 50% sized bitmaps in your 1024x768 stage, they will look pixel perfect on Retina. Anything that is Vector will look perfect too.

     

    If you have other reasons to need to use no_scale, then you have to do all the sizing by code. Or, set the quality to standard, and iOS will scale it for you. It will then look the same as it would on iPad 1.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2012 7:33 AM   in reply to Colin Holgate

    Thanks Colin for the swift reply. I am glad I found this thread as I had submitted my app to Apple this morning with the quality set to high and no_scale.

     

    I recall something didn't wotk properly when it was not set to no_scale but will double check

     

    I just did a quick build with no_scale and quality set to standard and it looks OK. I am viewing on an iPad 2. Should I notice any difference between the standard and high setting when viewing on the iPad 2?

     

    Sorry one more question, does this mean people viewing it with these settings (standard and no_scale) will see the game looking the same on the iPad 3 as I am seeing it on the iPad 2?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2012 8:39 AM   in reply to P Steven

    On iPad 2 Standard and High will be identical. On iPad 3 Standard will make your 1024x768 fill the screen, and will look about the same as it does on iPad 2. Purists will still complain if they notice the slightly less perfect antialiasing.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2012 9:11 AM   in reply to Colin Holgate

    Phew thanks Colin - that is a relief. I commissioned the graphics for this game before the iPad 3 came out so will take the risk of upsetting the purists.The game is for 2 year olds so hopefully they are forgiving:)

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2012 9:24 AM   in reply to grosssmutttr

    What you're seeing in Flash Builder publishing to iPad 3 is expected behavior. The DPI returned for iPad forces the UI to automatically scale accordingly. What's happening is the layout is being modified more than you'd like, so it's extremely small. You don't want to ship low res graphics on iPad 3 when you don't have to.

     

    To get the standard res layout at the hi res graphics, you need to override the DPI returned for the iPad 3 with runtimeDPIProvider. This post explains how:

     

    http://forums.adobe.com/message/4278040

     

    Colin has some very good points for getting the standard res output for iPad 3, but in Flash Builder using any of the Flex mobile skins, the quality is too low, and it's an unnecessary step, when you can just have Flex return a lower DPI to give you the correct layout at the hi res graphics.

     

    iBrent

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2012 1:08 AM   in reply to grosssmutttr

    Below this is my solution that allow using device DPI, taking advantage of retina display, but allowing upper limiting resolution (e.g. to 1024x768) to avoid stretching assets, image backgrounds and so on. Rotation is also taken into account.

    Graphically, the 1024x768 (or whatever you want) box is centered into the bigger display, and surrounded by a colored border (e.g. black border). this is the same solution adopted by Adobe on the new iPhone 5 for older app optimized for iPhone 4 resolution (they'll have vertical black rows on borders):

     

    Application mxml:

    remove applicationDPI attribute to allow using device DPI (according to documentation)

     

    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

           xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.HomeView">

     

    for every view: surround the whole content with a <s:Group> tag like this:

     

    <s:Group clipAndEnableScrolling="true" horizontalCenter="0" verticalCenter="0"

        width.horizontal="{Math.min(width, 1024)}" width.vertical="{Math.min(width, 768)}"

        height.horizontal="{Math.min(height, 768)}" height.vertical="{Math.min(height, 1024)}">

     

    then create the two states:

    <s:states>

      <s:State name="vertical"/>

      <s:State name="horizontal"/>

    </s:states>

     

    and set a resize handler in root tag to set the current state according to device orientation:

     

    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

      xmlns:s="library://ns.adobe.com/flex/spark"

      xmlns:ns1="*"

      resize="view1_resizeHandler(event)">

     

    in <fx:Script>:

     

    protected function view1_resizeHandler(event:ResizeEvent):void

       {

        if(width > height)

         currentState = 'horizontal';

        else

         currentState = 'vertical';

       }

     

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 7, 2012 9:28 PM   in reply to grosssmutttr

    A new attribute ‘excludeDevices’ has been added in AIR 3.6 in the requestedDisplayResolution tag in the application descriptor. Developers will now be able to explicitly disable the specified display resolution on one or more iOS devices using this attribute. Please find more details in the following links

     

    http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air3-6_fla shplayer11-6_releasenotes.pdf

    https://blogs.adobe.com/airodynamics/2012/12/07/excluding-devices-from -requested-display-resolution-mode/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points