Closing the Application

Must Read

Choosing a Target Market

Consider the following when choosing a target market. Measurability Can you identify numerically how many people/businesses are possible customers? Determine the...

Defense Lawyers, Do You Need One?

Sometimes people end up in trouble and in need of a defense lawyer. If this is you, the...

Nursing Homes Are Not Always a Safe Place

Nursing homes are not always a safe place for family members; they are only as good as the employees...

eBrochures and iBrochures—The Latest in Online Publications

An eBrochure is similar to a paper brochure. It contains all of the information you want your target market...

Canon EOS 60D, Using Aperture Priority (Av) Mode to Isolate Your Subject

When you are shooting in Tv mode, your camera will often be set at its widest aperture to bring...

Second Mortgage vs. Home Equity Line of Credit: Which is the Best Choice?

If you are a homeowner in need of an equity loan, but do not wish to refinance your existing...

If another application is selected, yours is moved to the background but continues to play and does not close. Typically, NativeApplication dispatches an exiting event when it starts the closing process. You can register for that event and be prepared to act quickly according to your application needs:

import flash.desktop.NativeApplication;
NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExit);
function onExit(event:Event):void {
// save application’s current state

However, the Android OS may choose to terminate background processes immediately if RAM is needed. In some cases, such as receiving a phone call, there is no guarantee that NativeApplication will have a chance to dispatch the exiting event before being shut down. It is therefore a good practice to save critical data often while the application is active.

The Android OS closes applications that were inactive the longest first. If you want to immediately shut down a particular application, select Settings→Applications→Manage applications→Running, click the desired icon, and press “Force stop.” You can also use third-party task killer applications, which conveniently display all the applications currently
running in one selection.

The Android UX guidelines recommend using the back or home button as an exit button. But you may choose to shut down your AIR application via code when it moves to the background, or make it a user option while it is running to run the following method:



Latest News

Digital Marketing for Beginners

Digital marketing for starter, Let to basic learning about connecting with your audience in the right place...

What are 7 things poor people do that the rich don’t?

1. poor people watch TV in which people read books how many hours you spend in front of the TV and when...

Top 18 best small business ideas for beginners starting

A small business can be frightening and requires plenty of careful planning there are many small business ideas which can be beneficial...

Summer that makes you happy

We saw were already here I've been thinking about some of the things. I used to do with my husband even though...

4 Point to helpful tips specifically for caregivers

What you need to take a vacation. I know it sounds impossible creative and try to make it work for you almost...

More Articles Like This