Skip to main content
Fanous
Participant
Aug 27, 2014 10:52 AM UTC
Answered

How to minimize adobe air android app with as3?

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 is closed to new replies. Start a new post to keep the conversation going.
Aaron BeallCorrect answer
Inspiring
Aug 27, 2014 6:00 PM UTC

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

2 replies

Inspiring
Aug 27, 2014 5:59 PM UTC

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.

Translate
Aaron BeallCorrect answer
Inspiring
Aug 27, 2014 6:00 PM UTC

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

Translate