Skip to main content
Known Participant
June 22, 2011
Answered

Keeping my flash iOS app from reloading everytime

  • June 22, 2011
  • 1 reply
  • 3398 views

I'm working on this slideshow test app, that starts by loading an array of online pictures, that when loaded becomes a this slideshow...

My question is: How can i keep the app in this state when the home button is pressed on the iPhone?

As it is now, when i reopen the app after a trip to the homescreen, the app starts to reload, altho it has been loaded and running in the background.

(I'm working in Flash professionel CS5 btw)

This topic has been closed for replies.
Correct answer relaxatraja

Okay, i did just as you described. But it didn't work as expected...

In cmd I navigate to my project-folder (which i take is the bin/build folder, where Flash has put the swf, xml and so on). This folder I copyed directly to the C-drive so it is easy to access (C:\displayCases\). Same place as the AdobeAIRSDK folder.

In C:\displayCases\ i then write:

C:\AdobeAIRSDK\bin\adt.bat -package -target ipa-test -storetype pkcs12 -keystore mykeyname.p12 -storepass mypassword -provisioning-profile provisioningname.mobileprovision displayCases.ipa displayCases-app.xml displayCases.swf

- and get this error: 'java' is not recognized as an internal or external command, operable program or batch file

which is russian to me. Does it make any sense to you relaxatraja ?


check with java -version in command prompt to know whether you have installed? If its installed and the setting for the path made then it will work. I'm leaving for the day. please google it to configure java in your system if you not get the version from the cmd prompt.

1 reply

relaxatraja
Inspiring
June 22, 2011

Change iphone infosettings within the xml:

<iPhone>

    <InfoAdditions>

       <![CDATA[<key>UIDeviceFamily</key><array><string>1</string></array><k  ey>UIApplicationExitsOnSuspend</key><true/> ]]>

    </InfoAdditions>

  </iPhone>

true will exit the application and restarts, try to change it to false or else remove the tag within your appname-app.xml.

Known Participant
June 23, 2011

Adding <key>UIApplicationExitsOnSuspend</key><false/> - diddn't work. The app still restarts.

Don't understand what you mean by removing the 'tag', since the tag / string isn't in the xml by default

relaxatraja
Inspiring
June 23, 2011

by the way which version of AIR SDK you'r publishing? AIR 2.6 or AIR 2.7? or below?


added by colin in someother thread:

If you're using AIR 2.6, then it requires iOS 4, and every device that can run the app will be able to do the pause/resume.