Highlighted

How to minimize adobe air android app with as3?

Community Beginner ,
Aug 27, 2014

Copy link to clipboard

Copied

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?
}

TOPICS
Development

Views

971

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to minimize adobe air android app with as3?

Community Beginner ,
Aug 27, 2014

Copy link to clipboard

Copied

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?
}

TOPICS
Development

Views

972

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 27, 2014 0
Engaged ,
Aug 27, 2014

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 27, 2014 1
Engaged ,
Aug 27, 2014

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 27, 2014 1