Flex Mobile: How to suspend a Flex app on Android

Hi everyone,
i need to suspend my app.The following code doesn't suspends it closes the app...
NativeApplication.nativeApplication.exit();
Is there acommand to just suspend the app?

Im looking for a command which returns to the device homescreen/desktop and doesnt closes the app completly.
I want the behaviour like if u press the hardware home-Button. The app still runs in the background and if u restart the app its in the state before u pressed the home button. In contrast if i use the code line posted above the app is really closed and doesn't runs in the background any longer.

Similar Messages

  • Flex Hero, how to make a whiteboard for Mobile Flex App in Android platform?

    I had made a whiteboard with the sdk 3.5 for PC, but when i use the same way in the SDK Hero, i can't draw any shape.
    I use a image to draw picture on it, and the   image.source   is   a  Sprite, and when i creat a new shape,  i add it in the Sprite,
    it is worked in the sdk 3.5, but it is not work in the Mobile Flex App.
    can anyone help me?
    Thanks  HamlinXu

    may be i know what happen,  i try to draw shape on  the view,not on the Image, it work.
    i think may be my image does not show on the view, but i have set the visible=true, it is stilll can't see the Image,
    how to make the Image can see in the view?

  • How to set an AIR app on Android to handle filetype

    I've been trying to make my app as default handler of a file type on Android. I have the as3 code to open the file (via InvokeEvent.INVOKE) but I can't seem to be able to register the app as a handler.
    I added this code in the app XML:
      <android>
        <manifestAdditions>
          <![CDATA[
            <manifest android:installLocation="auto">
              <supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true" />
              <uses-permission android:name="android.permission.INTERNET"/>
              <uses-permission android:name="android.permission.WAKE_LOCK"/>
              <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
              <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
            </manifest>
            <intent-filter>
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data
                android:host=""
                android:mimeType="*/*"
                android:pathPattern=".*\\.pgn"
                android:scheme="file"
              ></data>
            </intent-filter>
        ]]>
        </manifestAdditions>
      </android>
    I also tried with
    <data android:mimeType="*/*" />
    <data android:pathPattern="*.*\\.pgn" />
    What am I doing wrong?

    You're going about it the wrong way. Native development allows you to find package names of installed apps and request they start using the Intent system with startActivity (once you verify the app exists), see here:
    http://developer.android.com/training/basics/intents/sending.html
    However that's native. You'll either need to find an existing native extension or create one yourself.
    That aside facebook may supply you with the proper scheme to call to launch the app in which case it would probably prompt you to run facebook in the app or in a browser. More info on defining those schemes here with code:
    http://www.riaspace.com/2011/08/defining-custom-url-schemes-for-your-air-mobile-applicatio ns/

  • How to compile the AIR app to android emulator

    How to compile the AIR application to run on emulator ?
    May be use the 'adb' command line ?

    -target The type of package to create. The supported package types are:
    air — an AIR package. “air” is the default value and the -target flag does not need to be specified when creating AIR or AIRI files.
    airn — a native application package for devices in the extended television profile.
    native — a native desktop installer. The type of file produced is the native installation format of the operating system on which the command is run:
    EXE — Windows
    DMG — Mac
    DEB — Ubuntu Linux
    RPM — Fedora or OpenSuse Linux
    apk — an Android package. A package produced with this target can only be installed on an Android device, not an emulator.
    apk-debug — an Android package with extra debugging information. (The SWF files in the application must also be compiled with debugging support.)
    apk-emulator — an Android package for use on an emulator without debugging support. (Use the apk-debug target to permit debugging on both emulators and devices.)
    Use the value as per your need. The you can use adb to push the packaged apk to your emulator.

  • How to view videos on apps from android device

    Trying to view my videos on Facebook but need to set up flash player on Samsung galaxy 5 phone? Any suggestions?

    Hi jenniferr52464914,
    Please refer another forum thread given below:
    when will flash player be available for Android devices.
    Let me know if this answers your query.
    Regards,
    Anubha

  • Adobe AIR Needed on Android / iOS to Run Adobe Flex Apps

    Hi all,
    I want to confirm if the user has to install Adobe AIR before launching Adobe Flex apps on Android and iOS Devices. Is there any way that we could embedd Adobe AIR setup in the app file so that the user dont have to hastle in installing Adobe AIR.
    Taimur

    It gives you only three options:
    Signed packages for each target platform.
    Signed AIR package for installation on desktop.
    Intermediate AIRI package that must be signed later.
    For mobile apps, we need to select the first option to get the .apk and .ipa file as the second option would generate .air file. None of the options offer to package AIR runtime. Only the first option gives you the option on NEXT window to include the download link of AIR Runtime.
    If i am wrong, kindly point me to that specific checkbox.
    OR do i have to put Runtime.apk in the assets folder of my source code so that it gets packaged?

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • How to debug 4.5.1 flex app in Black Berry play book?

    Hi ,
         i do want to know how to debug the 4.5.1 flex app in Blackberry playbook and the process  or do we need do enable any properties  plz let me help on this ASAP.
    Thanks

    Simeon,
    Thanks for that, I had a brainfart and forgot you can have the properties defined in that manner.  I changed it but it still wasn't working which made me realize I had to change the backgroundColor property on the view in Away3D.  I realized this after trying the params for the class and then not adding the view (which had a white bg) and then i looked at the docs and bam, there it was.  Thanks!
    Matt

  • How to call Flex app from Javascript in portal question

    I've setup my flex 4 app with a callback function. The flex app is embedded in a Java portlet on a WebLogic Portal 10.3.2. How can I call the Flex app from the portlets javascript function? Code below shows how the flex app is embedded in the wrapper jsp.
    <script language="JavaScript" type="text/javascript">
            AC_FL_RunContent(
                        "src", "<%= srcPath %>",
                        "id", "<%= (String)request.getAttribute("portlet_name") %>",
                        "name", "<%= (String)request.getAttribute("portlet_name") %>", 
                        "width", "<%= request.getAttribute("width") %>",
                        "height", "<%= request.getAttribute("height") %>",
                        "align", "middle",
                        "quality", "high",
                        "FlashVars", "PORTLET_WS=<%= request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
                        "allowScriptAccess","sameDomain",
                        "type", "application/x-shockwave-flash",
                        "pluginspage", "http://www.adobe.com/go/getflashplayer");         
    </script>

    Thanks for the response. I followed the instructions in the link, but it does not appear to work within a Weblogic 10.3.2 portal. My Flex app is wrapped in a Java JSR 286 portlet. Should this approach work or is there a different approach for the portlets wrapper JavaScript to call a Flex callback function?
    thanks
    Dan

  • How to migrate a flex app from Flex Builder 3 to Flash Builder 4.7

    Hello,
    I have written an extensive application using Flex Builder 3. I have maintained the app for several years using FB3. In the mean time I have created several mobile apps using Flash Builder 4.7. So I am very familiar with the the new framework. However, my client has requested some big changes to the app. I figured this would be a great opportunity to migrate the app to FB4.7. I would like to keep the mx structure for the time being. So, are there any good documents concerning this migration path? What SDK should I use. Should I start using the Apache Flex SDK?
    Thanks,
    --randu

    Hello Raja,
    Thanks. Your reply has been very helpful.
    For deploying the Flex app, as a web on NW 04S, I did the following:
    - Created a web project and included the following files as web-content. These files were created using the Flex builder or in the Flex development perspective of NWDI - CE, you can find them in the "bin" folder of your Flex project.
       - AC_OETags.js
       - your-app.html
       - your-app.swf
       - history.htm
       - history.js
       - history.swf
       - playerProductInstall.swf
       - crossdomain.xml - This file is important, if our Flex app wants data from the server.
        ( I made the simplest possible crossdomain.xml containing
           <allow-access-from domain="*" secure = "false"/>
      -  Declare "your-app.htm" as the welcome file in web.xml
      -  Package, this .war after building this web project in an Enterprise application project and build it.
      Now, you have the .ear made, which is deployable on your NW Web AS.
    Apart from this, another thing which is important to be included in your Flex mxml code is the following:
    ( Thanks to Abesh for this........ )
    - You have to tell the Flex app, in the action script, as to from where should the Flash engine pick the crossdomain.xml ( in case you are accessing the server for data from your app)
    You might have noticed, we packaged the crossdomain.xml along with our other web content in the .war.
    So mention, something like this in your action script.
    Security.loadPolicyFile("http://<hostname>:<http-port>/<context-root fo your web app>/crossdomain.xml");
    The code will work like a charm.
    Hope this helps everyone.
    Thanks guys.
    Best Regards, Gagan.

  • How to execute adobe air app & pass argument from Flex ?

    Helo everyone,
    May i ask a question, How to execute adobe air app & pass argument from Flex ?
    Thanks in advanced.
    Jacky Ho.

    Hello Jacky,
    You can find an example here
    http://spreadingfunkyness.com/passing-parameters-to-adobe-air-at-startup/

  • How CAn I Use a URL variable in Flex App

    Let say the link to a web page embedding a flex 2.0 app is
    http://www.myname.com?name=Bruce
    and I need to use the URL.name variable in the Flex app.
    How can I access URL parameters inside my Flex app?
    Bruce

    You probably know by now but I though maybe a could actualy
    answer someone question.
    {Application.application.parameters.name)
    put that in mx:text and you can see the var "name"

  • How to exit a Flex app

    I have a Flex application that is run in a browser.  There is a public page and then other pages that cannot be accessed unless the user logs in.  To log in, I show a popup window and the results of their username, password and role determines which page in a viewstack gets displayed.
    My issue is this.  When the user clicks the logout button, I want the app to go back to the public page as if they just eneterd the application for the first time.  Is there are easy way to accomplish this, and is it secure?  If so, how?
    Thanks again!

    if you wanted to just close the window all together you could write some Javascript to close the window, then in your flex app call the function when they click the logout button
    If you want to actually end it with Actionscript you could try:
    public function applicationExit():void {
         var exitingEvent:Event = new Event(Event.EXITING, false, true);
         NativeApplication.nativeApplication.dispatchEvent(exitingEvent);
         if (!exitingEvent.isDefaultPrevented()) {
              NativeApplication.nativeApplication.exit();
    Source: http://livedocs.adobe.com/flex/3/html/help.html?content=app_launch_1.html

  • How to have HTML tags in Flex app wrapper.

    If I put this just below the <body> tag in my Flex app
    HTML wrapper, it displays:
    <h2>Greg Lafrance</h2>
    But if I put that tag just above the ending </body>, it
    does not show up.
    I'm sure it is something simple, but can someone please
    enlighten me?

    Hi,
    overflow property will tell the browser to hide the content
    if it is overflowing the available space. Please find more details
    at the URL below.
    http://www.w3schools.com/Css/pr_pos_overflow.asp
    IE is ignoring this style property and so we have scroll
    property for the BODY tag also. As Tracy mentioned, these are set
    to make sure Flex application occupies the browser.
    Hope this helps.

  • How to disable right-click in Flex app /w actionscript?

    Anyone know of actionscript code within Flex for disabling
    right-click. I've got an app that I don't want my users to have
    access to the right-click menu.

    "EvolvedDSM" <[email protected]> wrote in
    message
    news:gadm7g$fi6$[email protected]..
    > Thanks hanchan, I did just want to disable the zoom
    options and whatnot.
    > After
    > watching a few users, who have never worked with a flex
    app before,
    > accidentally right click here and there and zoom in or
    zoom out, I was
    > banging
    > my head on the wall thinking "this could happen ALL THE
    TIME with these
    > people".
    >
    > Ahhh, Amy. You need to feel the love of "No Script", a
    FireFox browser
    > extension. It is truly the best tool on the net imo. NO
    MORE ADS. You
    > have
    > to allow non-domain site ads to appear on the page, else
    they never load
    > and
    > you don't have to deal with the ads. If you use FireFox,
    get it!! And if
    > you
    > don't use FireFox, try it!!
    But even then, the player itself isn't providing you with any
    security.

Maybe you are looking for

  • Hod do i transfer apps from 3gs to 4s

    how do i transfer apps and pics from 3gs to new 4s phone?

  • HR 4.6C - OM: Copying  positions - Use of PPOME

    Hello,     I am supporting SAP HR (OM/COMP/PA)and I am looking for alternative to The transaction PPOME that will allow user to copy positions. If there is not such transaction are there ways to restrict something such as PPOME so that they could onl

  • OCI XML mapping

    Hi, We are working on SRM 4.0 EBP 5.0 CCM 2.0 implementation project and are in process to design the system to read data from external catalog. The data is successfully read and mapped into OCI parameters if the data sent from external catalog is in

  • Updated Itunes nothing but problems afterwards

    Hello,    I downloaded a new update today and now nothing is working like it was before.  I can not do a backup from my ipod touch to my computer.  I have playlists on my ipod that I can not put on my computer.  When trying to sync, it says my comput

  • Third Party Intruders

    my computer has a third party on it. I need to get this third party off to be able to get on the internet and shut down my computer without forcing it. I already have enabled safe boot.