IOS Home Button and Event.ACTIVATE/Event.DEACTIVATE

Hi all,
I read tons of questions re iOS Home Button and Event.ACTIVATE/Event.DEACTIVATE. Everything should work well if you set the proper listeners and save/restore your app state upon receiveing these events.
My question is: Is there a way to tell difference between a Home Button press and an iOS notification alert or incomming call? In both cases, AIR will dispatch Event.DEACTIVATE, however I want to know if the user pressed the Home Button or if he just received an SMS/Calendar alert, and adapt my app state accordingly - i.e. if it's a Home Button press, change my app state to "Main Menu", otherwise (SMS/Calendar/alert) I will pause execution.
NOTE: I don't want to override the Home Button behaviour, just want to tell if it's a Home Button press or SMS/Calendar/alert, and react accordingly. The iOS documentation states that in case of SMS/Calendar/alerts, (void)applicationWillResignActive:(UIApplication *)application is dispatched, and in case of actually going to background state (i.e. Home Button pressed) (void)applicationDidEnterBackground:(UIApplication *)application is dispatched.
Thanks

Any luck with this yet? I'm having the exact same issues but on a different device, the Kindle Fire.
I need to determine whether a user hit the Home button, or hit the Quick Settings button (that accesses controls like volume). Air treats both events equally by broadcasting Event.DEACTIVATE. Unfortunately, the Amazon Appstore approval team thinks otherwise...
It seems like there should be a simple, no-brainer way to track these events, but I'm beginning to suspect Air just is not capable. In that case, if you're developing for Kindle Fire, you may want to avoid going with Adobe.

Similar Messages

  • My iPad frequently locks up, even after updating to iOS 7.1.  When it locks up it's nonresponsive to the home button and the only remedy is to force a shut down and reboot. Help!

    My iPad frequently locks up, even after updating to iOS 7.1.  When it locks up it's nonresponsive to the home button and the only remedy is to force a shut down and reboot. Help!

    DEVICE NOT RECOGNISED IN ITUNES
    If you have connected your device to your computer and it does not appear in the side bar in iTunes then for Windows computers read http://support.apple.com/kb/TS1538 or if you have a MAC then read http://support.apple.com/kb/ts1591 for troubleshooting steps.

  • So i was updating my ipod touch (4g) to ios 6 and i needed to stop it in the middle of updating. so i held the home button and the lock button. it turned white and i tried charging it when it died but it went back to usual please help!

    so i was updating my ipod touch (4g) to ios 6 and i needed to stop it in the middle of updating. so i held the home button and the lock button at the same time for it to restart. It started turning on with the apple symbol and then the screen went white. I kept trying to do the same thing but it wouldnt work. Eace time i did that the screen was a different color. I was yellow/white at one point, blue at another time and sometimes the color behind the apple symbol. It got really HOT and i just let it die. When it was dead i put it on a charger. once it got charged up it started turning on with the apple symbol. then it turned white again and then restarted without me touching anything. When it restarted it turned the blue again. i took it off the charger immediantly because i didnt want it getting as hot as it was before. ive tried every way i know how to fix it but not putting it in the computer because i dont want it to ruin the computer. Please help because i really dont want to get a new ipod. Ive read a lot about how to fix it here on apple but there all the same answer and it still doesnt work. Please respond ASAP! thank you! i could really use your help right now!

    First see if placing the iPod in Recovery Mode will allow a restore.
    Next try DFU mode and restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    If not successful then time for an appointment at the Genius Bar of an Apple store. You are not alone with this problem.

  • HT4623 i am updating to ios 6.1 but i dont want immediatly i have shut down my iphone by holding sleep wake button and home button and cracks from that time and its not restarting

    i am updating to ios 6.1 but i dont want immediatly i have shut down my iphone by holding sleep wake button and home button and cracks from that time and its not restarting

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • HT5192 After installing IOS 5.1, I am unable to double click the home button and access the camera. Is anyone else experiencing this issue? Does a fix or work aroud exist?

    After installing IOS 5.1, I am unable to double click the home button and access the camera. Is anyone else experiencing this issue? Does a fix or work aroud exist?

    I just updated--my Camera is a disaster.  Yes, I know how to turn (and position) the Camera now. However, every photo I take is UPSIDE DOWN in the Camera Roll OR Photo Stream.  Even worse, a number of my Apps (Weather Underground, for example) are ALSO now upside down.  Has anyone here experienced these serious orientation problems after this update?  I've read the 'Manual' and its as if it doesn't exist.  However, if I leave the Apple site, customer complaints about orientation abound...
    This is my first time posting here about an issue (well, the same issue - I posted last week about the Camera, and no one responded).  Any advice at all about how to get this corrected is much appreciated!
    Thank you!
    Lisa

  • My screen continually freezes up.  I've tried closing all apps that are openfreezby double clicking on the home button and closing them. I have held down on the home button and start button simultaneously and it still freezes. Can someone out the help me?

    MY screen continually freezes up. I've tried closing all apps that are open and have held down the home button and start button simultaneously but neither helped. Can someone out there help me?

    Well the next couple of things to try would be to reset all settings, and if that doesn't help, it's probably time to restore the iOS software.
    Settings>General>Reset>Reset all settings. That will take all settings on the iPad back to factory defaults. It will not delete anything and you will not lose any data, but you will have to enter all settings again ...WiFi passwords, enable Siri, select your wallpaper, adjust brightness, turn on location services and set privacy settings, etc, etc.
    You can read about restoring the software here.
    iTunes: Restoring iOS software - Support - Apple
    Should you decide to restore the iOS, it is extremely important that you back up first so that you can restore from the backup and then sync with iTunes afterward in order to restore all content back to the iPad. It is all covered in the kb article.
    If you do not sync with iTunes, then I assume that you backup with iCloud. In that case you can erase the device in Settings>General>Reset>Erase all content and settings. Once again, backing up with I loud is I,operative before you do this so that you can restore from the iCloud backup after you erase the iPad and start over again with activation.
    You should read this first before you restore from either backup.
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766
    This is a must read before you erase the iPad should you decide to go that route.
    iOS: Understanding 'Erase All Content and Settings' - Support - Apple

  • HT3302 My Ipod touch 8gb will not turn back on no matter what i do i have tried just the power button, the power button and home button, and connecting it to the computer and the battery wasn't close to being dead non of them work what do i do?

    My Ipod touch 8gb will not turn back on no matter what i do i have tried just the power button, the power button and home button, and connecting it to the computer and the battery wasn't close to being dead non of them work what do i do?

    Try:                           
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • I forgot my ipod password and i didnt use it for along time so it wont even connect to itunes plus it fell in the toilet so my home button and volume button doesnt work what do i do?

    I forgot my ipod password and i didnt use it for along time so it wont even connect to itunes plus it fell in the toilet so my home button and volume button doesnt work what do i do?

    Place the iOS device in recovery mode using this program
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    http://jaxov.com/2010/05/recboot-iphone-recovery-mode/and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
    Enter DFU mode without home button or Power Button | technoNix
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • My ipod touch 4th generation's home button and lockscreen work perfectly but the screen is unresponsive and wont work whats the problem?

    My ipod touch 4th generation's home button and lockscreen work perfectly but the screen is unresponsive and wont work whats the problem?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Youtube app not working "error tap to retry" on ipad 4. Tried holding home button and off together and delete and download agin both didn't work

    Youtube app not working "error tap to retry" on ipad 4. Tried holding home button and off together and delete and download agin both didn't work

    Oh phooey. I had the same problem, so I decided to delete and reinstall. Only to discover that Google's YouTube app no longer supports anything below iOS 6. This is a problem since I'm running an original iPad.
    Yes, I realize that my version of iOS still has the old YouTube app. But it's not the same. For one thing there are a lot of ad-supported videos that will only play in the new app.

  • HT201365 How do I close my apps with new upgrade?  It doesn't work when you double  click home button and hold until the x comes?

    I just upgraded to new iOS 7.2 and I don't know how to close out my applications? It doesn't work with the double click of home button and simply holding until the x shows?

    Tap Home button twice then use an  upward swipe on the preview to close the app

  • My IPhone4 is secretly using alot of data even though I have double tapped Home button and closed all the apps running in the background.

    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    When im out of home, the phone drains battery REALLY FAST, I lose 6% battery in 5 minutes.
    The phone also heats up and feels very warm after a few minutes.
    When I turn the data plan off, it becomes normal again, like I lose 1% every 30minutes even while listening to mp3.
    I can conclude that its secretly using the 3G at an alarming rate which causes the battery to die so quickly
    I have uploaded 2 pictures showing what happens before and after I turn on my WIFI.
    Notice that the ping spikes like crazy on my home network once I turn on my WIFI on my IP4
    WIFI OFF:
    WIFI ON:
    I hope someone can assist me with this!
    Thanks!!

    chuuburg wrote:
    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    There is a common misconception that closing an app on the Quick Launch screen (it's real name) also kills the app's background process. This is not the case. First, all built in apps (mail, contacts, calendar, game center, notes, reminders, Genius, Photo Stream, etc) continue running their background processes even if killed in the Quick Launch screen. For apps from the App Store killing the foreground process also gives the app the option of killing its background process, but it doesn't have to. In addition, any app that has Notifications enabled can restart its background process if it receives a Notification.
    iOS 7 gives the user more control over background processes; you can selectively allow or deny any app to run in background. As you apparently have not upgraded this option is not available to you.
    As Chris has already told you, there's an app on your phone that is stuck in a loop. As you discovered killing foreground processes did not resolve the problem. One trick that sometimes resolves this is to let the battery run down until the phone shuts off and will not restart. Then charge to 100%.

  • TS3274 I used to double click home button and then hold down each - app.

    How do I close out apps with iOS 7? I use to double click home button and hold down each - app.

    Double tap the home button, swipe to the large image of the app then swipe up and off the screen

  • When i press on the home button and hold it siri doesn't do anything

    please help

    After updating to iOS 7.1 i encountered same prob.
    Siri IS activated an still does not work while pressing home button and/or button on headset.
    Any ideas?

  • HT1212 My home button and Sleep Buttion Isnt working . What Do I Do Now , ?

    My home button and Sleep Buttion Isnt working . What Do I Do Now , ?

    Try the remaining items of:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

Maybe you are looking for