Skip to main content
Fanous
Participant
August 27, 2014
Answered

How to minimize adobe air android app with as3?

  • August 27, 2014
  • 1 reply
  • 1380 views

I have 2 buttons in my app ( my app published by flash cs6 for android ). one button for exit app and one button for minimize app (send app to background and show homepage).what is code for 2nd button in as3?


b1.addEventListener(MouseEvent.MOUSE_UP,exitapp);
b2
.addEventListener(MouseEvent.MOUSE_UP,minimizeapp);
function exitapp(e:MouseEvent)
{
     nativeapplication
.nativeapplication.exit();
}
function minimizeapp(e:MouseEvent)
{
     //...what code I should write here?
}

This topic has been closed for replies.
Correct answer Aaron Beall

Re: ANE -- looks like someone already did it: Send Application To Background Android

1 reply

Inspiring
August 27, 2014

I don't think there's a way to do this with standard AIR APIs. On iOS there's no general solution for this, but for Android you could probably make a simple ANE, possibly by using sendTaskToBack.

Aaron BeallCorrect answer
Inspiring
August 27, 2014

Re: ANE -- looks like someone already did it: Send Application To Background Android