Skip to main content
Participating Frequently
December 5, 2012
Answered

exit in ios using flash CS6

  • December 5, 2012
  • 5 replies
  • 865 views

Hi,

I am using flash CS6 to create an iPad application. I want to exit the app when user click on home button. Is there any way to do it programatically?

I have published the ipa file. Then change the extenstion to zip. Open the "application.xml"which is in the AIR folder.

The previous code in the xml was:

<iPhone>

    <InfoAdditions>

      <![CDATA[<key>UIDeviceFamily</key><array><string>2</string></array>]]>

    </InfoAdditions>

    <requestedDisplayResolution>standard</requestedDisplayResolution>

  </iPhone>

I have changed it to the:

<iPhone>

    <InfoAdditions>

      <![CDATA[<key>UIDeviceFamily</key><array><string>2</string></array><key>UIApplicationExitsOnSuspend</key> <true/>]]>

    </InfoAdditions>

    <requestedDisplayResolution>standard</requestedDisplayResolution>

  </iPhone>

Save the file.

Again convert extension from zip to ipa and tried to installed it on iPad.

But, now the application failed to installed.

Could any one tell me what may be wrong here?

Thanks in advance.

Regards,

Swapnil

This topic has been closed for replies.
Correct answer Pahup

Before going to publishing step, did you try modifying the xml (application descriptor) which is parallel to your fla.

-Pahup

5 replies

Pahup
Adobe Employee
Adobe Employee
December 5, 2012

Please see "Opting out of Background execution section" @ http://help.adobe.com/en_US/air/build/WSfffb011ac560372f7e64a7f12cd2dd1867-8000.html

Could you please try to 1st add the tag and then package the IPA.

-Pahup

Participating Frequently
December 5, 2012

Flash CS6 directly gives the ipa output. I don't know any other option on how to add the tag and then package the IPA.

Swapnil

Pahup
Adobe Employee
PahupCorrect answer
Adobe Employee
December 5, 2012

Before going to publishing step, did you try modifying the xml (application descriptor) which is parallel to your fla.

-Pahup