The release of Android App with external files * actionscript.as*

Hi, I'm trying to make this code work with an application that won 99% of the code of conduct by external files actionscript.as;

In another application without any external call, I mean not actionscript.as files, the very end code work.

My goal is to stop any activity of the application when the user receives a call or something like that;

Many thanks in advance and sorry my English

Scene 1, Layer 'layer 1', frame 1, line 14.

1046: type was not found or is not a constant of compilation: KeyboardEvent.

function handleActivate(event:Event):void

{

NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

}

function handleDeactivate(event:Event):void

{

NativeApplication.nativeApplication.exit ();

}

function handleKeys(event:KeyboardEvent):void - line - 14

{

If (event.keyCode is Keyboard.BACK)

{

NativeApplication.nativeApplication.exit ();

}

}

If (Capabilities.cpuArchitecture is "ARM")

{

NativeApplication.nativeApplication.addEventListener (Event.ACTIVATE, handleActivate, false, 0, true);

NativeApplication.nativeApplication.addEventListener (Event.DEACTIVATE, handleDeactivate, false, 0, true);

NativeApplication.nativeApplication.addEventListener (KeyboardEvent.KEY_DOWN, handleKeys, false, 0, true);

}

Make sure that your code has the import line:

import flash.events.KeyboardEvent;

Tags: Adobe AIR

Similar Questions

  • I can't create a native android app made with a 2560 x 1600. I only see the 2048 x 1536, 1024 x 768 option in the web native Android app?

    Hi all

    I created a native android app. I need to publish on a 2560 x 1600 android tab, the problem is that in my library, I have my ipad version of 2048 x 1536 and 1024 x 768.

    I know that when I create my native Android app, that I should be able selected my native interpretation in only 2560 x 1600, but in the library of android app generator tab of web I see only the option of 2048 x 1536 and 1024 x 768.

    Please do you have any idea?

    TX

    The drop-down list lists only folio sizes that you have published in the account of publication of your application. Make sure that you have actually published a folio of 2560 x 1600, and then you will be able to select from the drop-down list.

    Neil

  • No resources found that matches the name (to "android: textColorLink" with the value "@color/link_text_material_light")

    I downloaded adobe creative SDK for android and trying to check the demo app. But in the face of a problem described as below:

    If I compile project against target 23, then it shows no found resource that matches the name (to "android: textColorLink" with the value "@color/link_text_material_light"). It is corrected here https://github.com/fengdai/AlertDialogPro/issues/53 can you please use the most recent alert dialog library? Or any other solution to use the latest version of lib appcompat 23.1.1?

    I thank very you much for the quick response. I have posted the bug to Adobe Creative SDK

  • I want to inhibit the launch of calendar app with a shot to the right of the screen.

    I want to inhibit the launch of calendar app with a shot to the right of the screen.

    I use my iPad to read, and drag to change pages drags the calendar to the irritating front... most!

    You can enable settings > general > multitasking > allow applications multiple 'off', which stops by scanning of the right border showing the other apps - you can just disable in iBooks

  • Android app with the iPad dimensions

    Hello

    I built an iPad app using the dimensions of the iPad. Can I take the same Folio and publish on androids in the generator of DPS? Or what I need to rebuild with different dimensions?

    Thank you

    Yes, the viewer Android grabbing the smaller version of the iPhone because it is smaller and does not scale. Using a different title for the application ID Android is the choice at this point to give you the most control.

  • How to pass the legacy of a native Android app with minimal interruption

    It got to the point where I am recommending that my client switch their DPS app for Android native heritage. Can anyone offer an overview of the process of moving to an existing application? Most of the Adobe support documents are written for the start of a new application in native format. I need to give the customer an idea of how the transition will affect existing subscribers on the Android platform (i.e. will they need to download a new application, or if it will work as an update) and what we can do to keep the readers if they do not need to download an entirely new application.

    What complicates the situation, is that the likely customer want keep the legacy app so that we can to continue the offer on Amazon, because Kindle devices represent 60% of our non - iOS downloads.

    Thank you!

    To replace the legacy viewer existing, just use the same ID of beam used in the legacy application when you generate the native Android Viewer and then submit the application as a new version in the portal of the Google developers play. To locate the ID of group for the legacy Viewer, open the DPS App Builder desktop version and look at the list of applications. It may include a .air prefix, depending on when the application is built. If so, use the .air prefix when you specify the ID of group for the native Viewer, even if it is not an AIR application. The Bundle ID just needs to be the same. If you want two separate applications - that - I do not recommend using a different beam ID and submit it as a new application developers portal.

    The Amazon app is a different application that is unrelated to the game of Google app. You can continue to leave the application in the Amazon Appstore.

  • How to refresh the playlist on Android app

    There is a setting in iTunes/Windows to update the library to the cloud, it sends recent changes, but how do update you the library on the Android app so it pulls down the updates pending in the cloud? I saw him run updates from time to time, but it seems to do it randomly.

    Android app 0.9.9 version (245)

    LG V10 performer Marshmallow 6.0

    I noticed most sync of things more in a few minutes, but things like play counts can take about 24 hours to synchronize with devices.

    Also in the music of Apple on Android, when you're in the high level view of playlists you can drag and pull down to refresh.

  • BlackBerry App Blackberry 10 OS cannot run the most popular android app of China (PRC)

    I know that the Blackberry 10 operating system does not guarantee compatibility with all android applications.

    But I think that your company will be interested in solving this problem.

    This is because the program has 1 billion users. (It's the Chinese clone of Whatsapp.)

    This popular application 'Wechat' cannot run on the Blackberry 10 operating system.

    You can talk to Tencent (software company) to address the problem.

    (This company has made to develop a version for the Blackberry OS, but they have not updated for over a year).

    The official download for the app link is here:

    https://play.Google.com/store/apps/details?ID=com.Tencent.mm

    Thank you for your explanations. Seems that you have so many camera problems lol, just kidding.

    Personally, I prefer to use the snap-in as a source for downloading applications androids instead of Amazon Appstore or any other source. Never have a problem until now.

    Since you have successfully charge your phone OS, I recommend you try Snap, to avoid the unable uninstall question android app.

  • Android apps with event

    HII

    I had implemented the client side of my android application using apk2bar command line tool, I understand the android.cfg and put the application id and ppg url according to the mail I received regestring the push service bis.

    now my question is how does the side Server? How do I send messages? How to receive tokens?

    IAM a mobile developer and I have implemented service push for ios, android, bada, platforms windows and each of them had the same logic, but the blackberry is different.

    Please help me solve this problem.

    the implementation for porting android applications server-side?

    Hello

    Push is not supported as of now on the Simulator, you can use a real device BlackBerry to test your install your Android app on.

    You can push multiple applications to an initiator to push, but each push-enabled application on the device itself will have its own ID of the application that are associated with him.

    Thank you

    Matt

  • Porting background running Android app with BB 10

    I developed an Android application that is compatible with Android API 9 and later. I'm back running the process as a service to Android. When I try to wear this Android app, I found that this background serveice has some problems. Is that BB 10 development Android Runtime supports no backgroung services again?

    imre_m wrote:

    Hello

    There is no support to run background services. Applications can be run services too long that the user is running, full-screen or in thumbnail mode.

    They are little supported (they are just services as much as android is concerned, and if they run in the background is a property of the system).  This player says Android can and will termininate in scenarios you can not see them terminated on stock Android (i.e. If you close the shell of your application window).

  • Add actions to the BlackBerry 10 Android app navigation bar.

    Hi all

    I wore one for BB 10 Android app. I have observed that I get a navigation bar at the bottom of the screen, with icons defalult ('Back', 'info', 'Hide', 'Overflow'). I wanted to know is anyway to add our own actions (Ex: including buttons 'Previous' and 'Next') in the bar of navigation through source code Anroid.

    If not through the Android source, which is available workaround...

    Can someone also tell me is it possible permanently show the navigation (showing probably not 'hide' icon in the navigation bar) through Android code.

    I hope that my questions are very basic since am new to porting of BB, but very curious about things. Thanks in advance.

    Ah, it's also not possible.

  • Tecra M5: How to use the FN + F2 fast locking with external keyboard keys?

    When to use a docking station and the keyboard of the UBS, the function key ("Fn + F2") on my tecra M5 as will not work. The USB keyboard has a Fn key, but when you press on with F2 nothing happens. Can I lock the screen another way?

    Usually, by default the FN keys work only on the internal keyboard.
    If you want to use the function key FN keyboard USB external, you must first activate this function FN.
    This function, you can enable in the Toshiba HWSetup located under the control panel.
    Here, you will need to select the keyboard tab and assign a function to the FN key on the external keyboard Fn key window.

    Hope this works

  • Question of the NEX Time Lapse app with fashion bed and the rising of the Sun.

    NOTE: this problem was first mentioned by me in the other thread about the app of time works do not (a thread "solved").  Wanted to separate this issue in its own thread so I hope this is seen and worked on...

    NEW PROBLEM?  I starts with the NEX - 5R regular automatic mode 'Greens', start the application of time and run in mode 'Sunrise' .  I then begin firing sequence before the sun rises.  It takes about 40mins (I use all the parameters of "sunrise" by default) and when I check the results I see that the exhibition was "locked-in" with the first shot taken.  That means the video created in the device starts properly exposed, gets brighter as the Sun starts to come will then completely saturated white until I see clouds of beautiful Sunrise 'red '!

    What is the way in which the mode of "Sunrise" is supposed to work?  I'm doing something wrong?  I think that with the changes in the brightness of the scene, the camera would be re-meter each image taken on not to bleed the scene as the sun rises.

    Everyone knows this too?

    Moderator: you can report?  (BTW: the Sunset function does the opposite for me also: scene will just completely black too fast as the sun sets.)

    Thank you

    Mike

    At the time of writing, we have no information if there is an update for this application. We can refer to this post and try the steps to see if this will fix the problem.

    If this post answered your question, please mark "accept as a Solution.

  • OpenScript: How to extract the StepName and StepResult to an external file

    Hello

    We try to capture the results of the tests in an external file (excel sheet) at the level of the group stage. Y at - there any built-in function/API that could be used to capture the StepName and the StepResult?


    Kind regards
    Nishant

    Hi Nishant,

    Try to use getStepResult () .getCommentString () and getStepResult () .getOutcome ().

    See you soon,.
    Jamie

  • Incompatibility of market Android Apps with DEFY without MOTOBLUR

    I have this weird problem where most of the Android market Apps appear as incompatible with my Defy without MotoBlur. Is it because of the absence of MotoBlur and is it possible to fix this? I enclose some screenshots of how it appears on the page Web de Android Market. Thanks in advance.

    Well this question suddenly slipped by itself, so my best guess is the site Android Market takes a while to get accustomed to the newly added telephones, perhaps.

Maybe you are looking for

  • Where is the application of friends for series 1

    My wife has the original Apple Watch. She uses the functionality of friends (side-scroller) to add friends for quick access. I just bought Watch series 1 and I do not have this feature? That has been deleted? If this is not the case, how to do it on

  • Message: "check Internet connection" when attempted to update the computer

    Original title: could not update my computer try to update computer all I get is a screen saying, check the internet but internet connect is fine ran for the elimination of the virus mcaffe ran all detergents that I always found out options please he

  • Windows Media Center is boring

    How can I get Windows Media Center to be opened after the end of any game of MS?

  • Elements of an enum using VI server change

    I have a strictly typed control enum. I want to call the dialog box items edit through another VI (i.e. through Server VI). (I want to generate the enum right-click and choose change items and get to the dialog programmatically). Is this possible?

  • setting the execution window

    HelloWhere can I change setings so that yellow marked isok (logic Agent) become default such as Local (no Agent) in now?