How to detect AIR for Android closing app event? AIR analog to Activity.onDestroy()

How to detect AIR for Android closing app event (remove app from dock "Recent Apps")?
In AndroidActivityWrapper.StateChangeCallback exist method onActivityStateChanged. But he have only DESTROYED state, which it seems received where app finish exiting. Activity.onDestroy() called if app start exiting.

DPI aside, you can just set your resolution on the project to the target devices resolution to preview how it will look. While vectors will render much smoother on the device (higher DPI), it's a very easy way to target various resolutions for testing.
If you have the full CC suite you might want to consider using Flash Builder 4.7 which has many different device presets and allows you to create your own presets to mimic tablets and phones. It really depends how complex your project is to move over to FB.

Similar Messages

  • Air for android in app purchases

    Has anyone played around with doing in app purchaces using AIR for android?  if so can you point me in the right direction for setting up something like this?
    Erik

    Hi Jonathan,
    Thanks for your response!
    jonbcampos wrote:
    1) BlackBerry has created a In-App Payment service. You can see more details at the following link. This is one such service to handle in app payments:
    http://devblog.blackberry.com/2011/01/blackberry-payment-service/
    Yes, but the subject of the post is "air for android". Can you use this blackberry service for android? Probably I am missing something.
    jonbcampos wrote:
    2) You can't take money without a few things, most of all a payment gateway. Payment gateway services can be expensive yet nowadays you can work with companies such as paypal and others to use their api to take payments. This is the service that you will have to call out to. Yes, you lose a little money in the transaction but this is the service that you will send payment information to and they are the gateway between you and the credit card companies. Once they have the money they turn around and pay you a percentage of the total sale. This percentage is determined in their fine print, so make sure you know how much each payment gateway is planning on taking from you.
    I know you need some kind of payment gateway. However, I guess the original thread author was requesting the Android Market in-app billing http://developer.android.com/guide/market/billing/index.html . They take 30% if I am not missinformed, but an advantage is that the customer already is registered with google market. Do you see other payment services as more interesting than the google market one when it comes to Android?
    N

  • AIR for Android: In-app Billing

    Hi!
    I would like use the new functionality in-app billing of Android. Because of that, I need use IPC method calls.
    Is possible use this communication technic since AIR for Android?
    Thanks

    Hi Pea!
    Yes, I tried with Elad's post, but it's very succinct to me.
    Finally, James Ward send me a draf about this hackin and I was able to generate a mixed apk. And I could generate the apk without problems.
    Now, I'm figthing with secure socket between android and flex.
    Thanks for your help.

  • Adobe Air for Android - caching key event that have "unusual" keycode

    I am developing an application for a platform. The OS of this platform is Android Gingerbread (2.3.4) The platform has some buttons with "unusual" key code: 141, 131 etc.
    Native application that created in ADT can catch and respond to these keyboard events While my Adobe AIR application (created in Flash professional) are Indifferent to them.
    I try both: stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,false,0,true); NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,fa lse,0,true);
    How can I "catch" this event? Maybe a way to add constant to the keyboard class?
    Thanks

    If you are deploying for iPhone it is on the 'general' settings(First setting page opened).
    Just noticed you are making android app but i still added iphone deployment settings for further future
    But if you are using it for flash/android you have to add code into your fla descriptor with XML language(dont worry it is 1 line of code)
    Watch the video on this page about GPU rendering:
    http://blogs.adobe.com/cantrell/archives/2010/10/gpu-rendering-in-adobe-air-for-android.ht ml
    Your app shouldn't lag after these steps but if you have a project that gets bigger and has lots of code it MIGHT lag so that is when external files should help.

  • Air for Android app just a black blank screen on emulator.

    Greetings,
    I'm starting android app development using air for android and I'm encountering the same problem as in this discussion, http://forums.adobe.com/message/4343423.
    Followed all the suggested solutions on the above link and nothing is working for me.
    Before I started air for android development, I upgraded my air sdk from 2.6 to 3.2, I overlayed the AIR 3.2 SDK in flash following the instructions on this link http://www.flashdeveloper.co/post/20583114199/air32-in-flash-cs-55.
    Published my first air for android test app (a simple test app to test swipe gestures) and installed the .apk on the emulator using the command line. When I launched the app on the emulator, it says Adobe AIR runtime is required so I installed the AIR runtime on the emulator using this tutorial http://renaun.com/blog/2010/12/finding-the-air-for-android-emulator-runtime/.
    When I thought everything will now work as expected then this problem came up. What do you think is the problem here?
    I'm using flash pro cs5.5 on windows 7 64-bit.
    Thanks in advance.
    Thanks,
    Randy

    Hi guys, any ideas?

  • How to add Google Ads or similar in "AIR for Android" application?

    Hello,
    I have developed my android application (AIR for Android) in Flash Professional CS5.5. It's completed and fully tested on multiple android phones. Now I want to add Google Ads in my application to make some money.
    What I already know:
    I know that Adobe provides AdMob native extension API which allows you to add Google Ads in your app. But unfortunately, it's not free.
    What I want:
    I want a free resource through which I can add ads in my application.
    Please guide me how can I achieve this?
    Thanks in advance,
    momersaleem

    Yes, its for me broken, too.
    I found the link in this thread:
    http://forums.adobe.com/message/4036804
    Maybe try to contact the author or one of the thread participants for an unbroken version?

  • How can I use a file in flash cs6 that I made in flash cs5.5 air for android

    I have made an app in in air for android in flash cs5.5 air for android, and I want to edit it in cs6 and play it in cs6.
    But if I put Ctrl+Enter I got an error: createWin process failed with error 2: system couldn't find the file. I think the problem is that I'am using air for android 2.6 version in flash cs5.5 and version 3.2 in flash cs6. I have searched the web and found out that you can add older air versions using the sdk manager and I have tried it but first I get the error that the version of the sdk I am trying to install is not valid and after some files that I added to the sdk folder I get this error:Only SDK higher than version 3.4.2540 may be added.
    I there a possible way to update the air for android for an fla or apk? Or how can I let my originally file work fine in flash cs6??

    system couldn't find the file
    If you can´t get a more specific hint why your project can´t compile then I can think of some reasons theis error might occur
    1.You had files included besides the swf, like videos, audio files, xml files, that are not present in the place air expects them to be
    2.somewhere in your createWin functions there is a class import needed that isn`t present in 3.2 anymore, for example some classes or functions from classes that were valid in 2.6 are not any more in 3.2
    3. to achieve better eror logging, allow for debugging in the publishing options and see what specific lines in your code throw the error
    4.any air app needs a cert file, this needs to be created once, if you migrated to e new system it might be you never created that file which air expects to even begin the compiling process
    once you isolate the problem, report back

  • AIR for Android App - Video Issue

    Hi all,
    I've developed a Air for Android application targeted specifically for Samsung N 800.
    There is a section in the application that has a list of Thumbnails and the user can click on any thumbnail and Play appropriate video.
    When playing the video, there is a Close button and Next / Back buttons available on the screen to handle respective actions.
    The issue with the app is that, when the Video is playing, if I hit the Home button available on the Tablet, the app minimises. Now if I maximize the app from the System Tray or reopen the App from the Menu, the video continues to play, but this time the Video overlaps the Close and Next / Back, so the user is not able to close the video what so ever.
    The same issue occurs when I access any of the buttons available on the Tablets system bar on the bottom of the screen.
    Any help will be much appreciated

    I'm not sure if I completely understand you, but if I do, you want to check the Exif info to see how the image is oriented, then rotate it to show it how you want on the screen. Take a look at this post here: http://forums.adobe.com/thread/875157 it may help with doing what you need. It's a little tricky and works differently for iOS and Android, but not too hard to figure out. Also, in the future, you may have more luck getting some decent answers by posting in this forum: http://forums.adobe.com/community/air/development/mobile?view=discussions

  • I need help adding admob ads to air for android flash cs5.5 app

    I would like to know how can i add admob ads in adobe flash cs5.5 air for android app without buying any extentions please tell in detail because my scripting in as3 is VERY weak, so detailed answers would be lovely.

      flash-air-admob-ane-for-ios-and-android - Admob Ane,a adobe native extention(ANE) for actionscript developer to add go…
    you need upgrade to flash cc.

  • I bought iPad air. How can I download for free the app : iPhoto, iMovie, Pages, Numbers and Keynote?

    I bought iPad air. How can I download for free the app : iPhoto, iMovie, Pages, Numbers and Keynote?

    Before you can download free apps:
    1. Make sure you are using IOS 7 (ignore)
    2. Make sure your iPad is registered in My Support Profile.
    https://supportprofile.apple.com/
    3. Try downloading again; it should be free.
    If you need serial number, it's here:
    Settings>General>About

  • APP created with Air for Android but doesn't work on the emulator for test - Help!

    When I create an application using Flash CS5.5>>> AIR FOR ANDROID.
    After creating a test page I go to publish settings and send the app on Emulator RELEASE ... The APP is loaded correctly but as soon as you start the emulator, give this error "The application XXnameappXX (process air.XXnameappXX) has stopped unexpectedly. Please try again" Help Please!

    Ok i've find this before "Adobe Flash CS5/AIK2.5/runtimes/air/android/emulator/Runtime.apk" and install it on android emulator! Now works all i hope! Thanks for your answer!

  • Using Google Play Developer License RSA code with Air for Android App?

    What is the procedure for using Google Play Developer's provided license code (Base64-encoded RSA public key to include in your binary) for an Air for Android app in Flash?
    I see the need to load a p12 file and have gone through the process of creating one for Air for iOS with OpenSSL but the Google provided key is in a different format. To start with it is delivered by copy/paste off a webpage.
    I am using Flash CS5.5. I could switch to CS6 if neccesary.
    Thanks

    Follow this link, see post number 12.
    http://forums.adobe.com/thread/1115438

  • AIR for Android app location

    I am developing an AIR for Android app. When the app is published, does anyone know where on the phone the app is stored? It would be on the internal memory as the app is never moved to the sd card.
    I need to know this as the app exports a pdf file. I am using File.applicationStorageDirectory so the pdf should save in the app directory but I cant find it.
    Would the app be stored in the same directory for iOS as well?
    Thanks
    UPDATE: 18/01/12
    I have found the app location and which can be accessed with a rooted phoned.
    I also have the pdf saving in the /Local Store/ directory of the app. However, is it possible to save the pdf in the sdcard directory? I have tried a relative path (../../../../../../sdcard) but that didnt work.

    Hi guys, any ideas?

  • Air For Android - Full Screen not working

    Opened CS5.5 > Chose "Air For Android" which gave me a stage dimension of 480x800 default. I then created my app.
    I am using a Droid Bionic and testing my app on it. It will not go to full screen, regardless of how I am holding the Droid. When publishing, I clicked "Full Screen" and Portrait, Landscape, Auto Orientation, etc. I tried all of the publishing options, yet still there is white screen on the eastern and southern side of the screen.
    I have a picture on the main screen, and it fits perfectly within the 480x800 dimmensions when playing in Flash. After publishing to an APK file and testing it on Droid, I have that white space as mentioned, as if the stage size grew larger than the picture / app. I also shrank the stage(480x800) dimensions to to (340x600) , but still the same amount of white space. When I move the picture to the right a bit, and publish, it shows the white space on the left hand side of the stage. This can only mean that when I publish, the stage size grows but everything on the stage stays the same. 
    Any ideas?
    Thanks!

    I removed:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    from AS3 and it works better. Now there is even white space on the north and south side of the screen. Clicking "Full Screen" in the publish settings, makes a little more white space, which is weird. It as if now the stage is expanding its height, rather than its height and width due to me using the above code. Still, would like to get rid of that extra white space.
    Edit: It looks like the stage height grew by 60. If I expand the picture by 60, placing it on the stage at 0x and -30y, it fits fine on the bionic. I don't understand why this is happening, and scared that it may be different for each device.

  • Best practice for images. Air for Android

    Hey guys...
    I was thinking about the best solution when it comes to images storage for Air on Android.
    Since I dont have much experience with non-web based apps, I thought of two way and I would like to know your thought on them.
    1.Application Storage Directory. If I get it right, this folder is created when the app is installed and the project can access files in it. Any idea on how this can work with images?
    2.Database. My app uses a local database anyway so maybe that the proper way to do it. I've done some research and found out that the image must be converted to a byte array (thats easy) but then I dont have a clue on how to save it to the database.
    So? Which one is better for the mobile world?
    Also, if there are other ways let me know please.

    While I am no expert in this area, I did run across this blog:
    http://www.remotesynthesis.com/post.cfm/local-caching-of-remote-images-in-air-for-android
    It deal with local caching of remotely loaded images.  Should be exactly what you are looking for.
    Darren

Maybe you are looking for

  • GWIA not listening on HTTP port

    I recently upgraded our GW8 to new hardware and eventually to 2012 sp1, now I'm seeing the following error in the GWIA log and the GWIA is not listening on its http port. There is nothing listening on 9850 (default http port for gwia). ****** 04-10-1

  • How do we make Facebook games (Cityville) show full screen on ipad?

    How do we make Facebook games (CItyville) show full screen on ipad? 

  • [unsolved]setting up wireless

    I don't think I installed the proper programs for wireless during the installation. Maybe, I should go back and re-install Arch and this time put in the correct packages. What boxes should I check, this next time, please? Last edited by vegan (2012-0

  • Function module to add 2 time fields

    I've 2 time fields : t1 = 06:00:00 (start time)                             t2 = 06:00:00 (end time)                             t3 = 01:30:00 (break time)               it's basically : t1 + t2 - t3. the result should be : 21:30:00

  • OfficeJet G85xi: best solution for connecting to network w/o going through a computer.

    I want to get rid of my office computer, which serves as the print server for our OfficeJet G85xi. The all-in-one is fine, really would prefer to not buy another printer, but in looking at print servers, it's very confusing as to which one will work