2

I searched for alternatives to restart my android application, but the only way I found to reboot is build ​​with Flex.

Can i restart my android adobe air app with as3 flash? How i do it?

Community
  • 1
  • 1
bio
  • 283
  • 1
  • 3
  • 19

1 Answers1

2

You can't do it with anything built into Adobe AIR on mobile. The capabilities of AIR are extremely limited compared to native applications. You would have to build an AIR Native Extension (ANE) to handle it. Worth noting that I don't think this is possible at all on iOS (natively or otherwise), so if you are deploying to both you would need to account for this. This would likely also be the reason why you can't do it in AIR for Android, as AIR for mobile tends to appeal to the lowest common denominator. If one can't do it natively, it is likely Adobe didn't include it for the other.

See this question on how to do it natively: how to programmatically "restart" android app?

Community
  • 1
  • 1
Josh
  • 8,079
  • 3
  • 24
  • 49
  • The link in my question (http://stackoverflow.com/questions/1821749/how-to-restart-a-standalone-adobe-air-flex-application) show how to do in Flex... Is it wrong? – bio Sep 19 '14 at 16:09
  • There is a large difference between AIR for desktop and AIR for mobile. What you want is not possible in AIR for mobile without writing and Native Extension, likely because it is not possible (at all) on iOS. So in that sense, yes it is wrong. – Josh Sep 19 '14 at 16:48
  • Really there, had not realized that the question of the link was about a Desktop application. Lost interest me to see it was not Flex and Flash. Sorry and thanks! – bio Sep 19 '14 at 18:15
  • If someone else stumbles upon this with similar need, then you can try this. First let me warn you that this will not work if you are using ANEs. What you can do is create simple loader swf that is your document class. Which creates a worker, which then loads your app. If you want to "restart" then kill the worker thread running your app and create a new one. – CyberProdigy Oct 28 '15 at 07:35