Reverting back to SystemIdleMode.NORMAL not working on Kindle Fire

I'm writing an app that disables the screen dim and keygaurd lock while the app is in use, but when a user navigates away from the app (i.e. goes to the home screen) then the screen dim and keygaurd is re-enabled.  I'm testing this on physical devices and it works on all other android devices that I have tested except for Kindle Fire.  So, when I go to the home screen and navigate away from my app the keygaurd and screen dim is still disabled so the kindle just stays on unless I manually locked it.  I know Kindle Fire is a modified version of the Android operating system, so it kind of makes sense that some things might work differently on a kindle.  I was wondering if anyone else has solved this issue or has any ideas about how to make it work?  Here is the code I'm using and I have DISABLE_KEYGUARD and WAKE_LOCK permissions selected:
stage.addEventListener(Event.DEACTIVATE, onLeave);
stage.addEventListener(Event.ACTIVATE, onComeBack);
private function onLeave(e:Event):void
     NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.NORMAL;
     movieHandler.movieScreen.pauseCurrentMovie();
                    private function onComeBack(e:Event):void
    NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
I know that the onLeave function gets executed because the movie that is playing gets paused when I go to the home screen.  If I comment out that line then then the sound would just keep playing.  Thank in advance for any help.

It is recommended that you try the following: In order to solve this problem.
Setting Permissions:
<uses-permission android:name="android.permission.WAKE_LOCK"/>
And
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
It is also mandatory.

Similar Messages

  • Bluetooth speakers not working on kindle fire HD 7...

    I have a kindle fire HD 7" and bluetooth is not working for in-call audio
    When the device is paired with my bluetooth speakers, the sounds of the volume changes and other gui clicks go out over the bluetooth speakers but the actual audio of the skype video call still go via the kindle's builtin speakers.
    NOTES:
    - I made sure to connect to bluetooth speaker before starting skype.
    - Other applications are working with my bluetooth speakers (e.g. playing music, spotify radio, etc)

    I have a reply from Amazon on this issue and have used the contact details they provided to contact Skype BUT with NO response!!!!   Why oh why do Skype ignore its users??????
    Amazon respnse:
    Thank you for contacting Amazon Appstore Support.
    I'm sorry to hear that you have had issues using your Bluetooth speaker with Skype.
    There is an explanation for this, however, I must warn you that it is a bit technical.
    Apps on the Kindle Fire play audio through one channel which does support Bluetooth audio. Device sounds on the Kindle Fire play audio through a different channel which does not support Bluetooth.
    Now the problem is that when the developers of Skype created Skype for Kindle Fire they routed the sound through the device sound channel opposed to the Apps channel.
    This means that that Skype does not support Bluetooth speakers.
    As the app was not developed by Amazon, you may want to contact the developer of the app, Skype Software, for product support and troubleshooting.
    I've provided the contact information below:
    Email Support:
    [e-mail removed for privacy and security]
    Support Site:
    https://support.skype.com
    I do apologise for the inconvenience.
    Thanks for your interest in Amazon Appstore.

  • Sound not working after Kindle Fire HD update.

    Skype 2.x on the Kindle Fire HD was great.  A little buggy, but it worked very well overall.
    I just received an involunatry update of Skype, to version 3.x, and now the app has a host of problems, the worst of which is that the sound during calls is too soft to be useable.
    This applies to both the sound on both ends of the call.  I can barely hear the people I am calling, and they can barely hear me.
    The application is now unuseable.

    For aibcje
    1. To delete the app, hold your finger down on the skype icon until it comes up with various options, then click on "remove from device"
    2. Click on "Apps" at the top of the main front screen.
    3. Now at the top of the screen you will see a button marked "Cloud" and "Device", press the "Cloud" icon and you should get to a page load of icons, with ticks in the corner.
    4. Scroll through until you see the skype icon and click on it.
    5. Now register with your old user name and password and you should be back up and running with the preinstalled version of skype.

  • I downloan and updated my iphone software ...i have tried to activate it back but it is not working out error message always what can i do?

    i downloan and updated my iphone software ...i have tried to activate it back but it is not working out error message always what can i do?

    this is the error message........we are sorry we can not continue with your activation please contact customer care
    another message will say actiavtion server not available;
    please what should i do?

  • I can't open my itunes , i tried to delete it and install it back already but still not working , please help

    i can't open my itunes , i tried to delete it and install it back already but still not working , please help

    No , it is something crushed in my computer ? i keep re-download it and tried to download some old version itunes my computer is a Window 7 . i can't backup my iphone and ipad now pleses help , thank you

  • Why isn't my back button in Safari not working? I am constantly resetting Safari.

    Why isn't my back button in Safari not working? I am constantly resetting Safari.

    Cheryl...
    Go to ~/Library/Caches/com.apple.Safari
    Move the Cache.db (or ApplicationCache.db) file from the com.apple. Safari folder to the Trash.
    Restart your Mac. Launch Safari. Try the back button.
    ~ (Tilde) character represents the Home folder.

  • Go back one page does not work

    Since I had to reinstall Firefox 3.6.15, the "go back one Page" does not work in many cases. Sometimes by clicking on history and manually returning, it works. Id there a fix for this problem, because it is new.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • My iphone 4 main button to get back to everything will not work

    My Main button on my iphone 4 for getting back to everything is not working, what should I do?

    You are referring to the Home button, right? 
    1. Restart phone
    2. If still not working, there is a hardware problem. Take it to Apple or an Apple authorized service provider.

  • What adobe works on kindle fire?

    what adobe works on kindle fire?

    You will need to have the Connect app: http://www.amazon.com/Adobe-Systems-Connect-Mobile/dp/B004SRH1YO/ref=sr_1_1?s=mobile-apps& ie=UTF8&qid=1382366936&sr=1-1&keywords=Adobe+Connect

  • Play back video clip is not working in the event browser...

    Hello,
    I have a problem in the event browser only. If I place the skimmer in any clip and press the space bar, nothing happen. If I press the "play" arrow" it does not work neither nor through the presentation menu.
    The space bar shortcut to play works perfectly fine in the timeline, but not in the event browser.
    In order to preview a clip at normal speed (100%), I have to drag it in the timeline and play it wich is rather anoying.
    Any idea on how to correct this issue would be very much welcome.
    Thank you very much for your help.

    I was having this exact same problem.  I tried deleting the preferences, however that didn't work.  But, yes, when I switched the view from 'show viewers on second display', back to 'show on main display'... the spacebar worked again... then I switched back to showing the viewers on my second display, the original circumstance  (which is definitely my preference)... and so far it is working again.. doesn't seem like anything has been 'fixed', but hopefully this doesn't happen often.
    So thanks to this thread, as I had no idea what to do, and it was getting very annoying.

  • Back to My Mac not working-a diagnosis and a solution

    Hello all,
    I own a small business and relied on Back to My Mac while traveling. I have had connection issues with BTMM since MobileMe was discontinued. I have found a solution but it is not an Apple solution. Skip to the end if you'd like the straight dope.
    FYI: I have exhausted all possible Apple-centric solutions, to the best of my knowledge. This was verified over the phone during an extensive troubleshooting session with a senior Apple specialist. All Macs and OS involved are optimized (in theory) to work with Back to My Mac. The appropriate file sharing options were checked. Users had appropriate access privileges. I have a valid MobileMe ID that has transferred over smoothly to iCloud. Firewall settings were not the issue.
    But before we go further, if you are having BTMM connectivity issues, you might want to examine this thread:
    https://discussions.apple.com/thread/4071540
    And see if it does the trick for you. It seems to have worked for a lot of people. But if it doesn't, please read on.
    I have an iMac at my office that I connect to. I have a MacBook that I use to make the remote connections. Before MobileMe was discontinued, I read all support docs on how to make the transition to iCloud. Nevertheless, once MobileMe was discontinued, I began to have BTMM connection issues. My Macbook could "see" my iMac, and vice versa, but once connection was attempted, either through "Share Screen" or "Connect As…",  the status bar would run indefinitely and no connection would complete.
    First, I tried the Keychain solution indicated above. No dice.
    Then I saw the System Preferences>iCloud message that Back to My Mac required NAT Port Mapping and/or Universal Plug and Play settings on my router. I have an old Linksys router, and I was able to upgrade its settings to UP&P, but not to NAT Port Mapping. The situation did not improve.
    I went to an Apple Store, spoke with a pair of salespeople who informed me that the problem would most likely be solved by replacing my old router with Airport Extreme, which would automatically upgrade my network to the necessary UP&P and NAT-PM protocols, and if any issues existed after that, they would probably be firewall-related, which I could either fix on my own or talk to an Apple person about.
    After installing Airport Extreme, the situation did not improve, and I called Apple Support. I entered the serial number into the web page, and was informed that I was not qualified for tech support because my warranty had expired, even though I had made the purchase the previous evening. I checked the option that indicated that I thought this was in error and that I was in fact qualified, and ten minutes later, I received a phone call from Apple.
    At first, I was on the line with a Airport Extreme specialist, who ran down the Airport Utility checklist. With my wife at the Macbook at home, and myself in my office at the iMac and on the phone with the Apple specialist, the troubleshooting began. Once it was apparent that nothing was working, I was transferred to a "senior" specialist who indeed knew everything under the sun about networking and Back to My Mac, at least as far as I could tell. We checked various settings on all devices, Airport configurations, iCloud account validity, my network's firewall settings, etc. 
    Finally, the specialist suggested we check the settings on my home router, which was supplied by my ISP and not an Apple device. I asked him why. He said that if we enabled UP&P and NAT-PM on my home router, that would probably help make the connection. I informed him that while that might be a short-term fix, I travel as part of my job and need to make remote connections to my office, often from places where I have no control over the router settings. He informed me that because of those "variables" I might very well continue to experience connection issues, and that in some locations I would be able to connect, and some, not.
    On the heels of all the time and money spent thus far, I was in disbelief. We spent some more time affirming beyond question that he was actually telling me what I thought he was telling me, and I cordially thanked him for his time and we ended the phone support session.
    THE STRAIGHT DOPE: I learned from a senior Apple specialist that network and router settings not only have to be just right at the server location but *also* the remote location in order for Back to My Mac to work. Simply having an iCloud ID is not always enough. If you travel, you most likely have no control over router settings at your hotel, coffee shop, etc., and if you rely on remote connections as part of your job, you can't afford to take the chance that wherever you reside might not be BTMM compatible. I signed up for LogMeIn Pro, at a cost of $59.95 a year. It has screen sharing, file sharing *and* iPhone access, which BTMM does not offer. My remote connections are now almost instantaneous and without issue. Problem solved.
    Please note, I have no ax to grind with Apple, I enjoy using their products and believe they are superior to Windows machines. I am also more than happy with the level of expertise, courtesy and efficiency of their support people. The Airport Extreme that I purchased is pretty cool, has kickass wireless signal, and has reduced the amount of wiring on my desk thanks to its wireless printing and hard drive capabilities. I feel a little burned that I bought it for no reason, but I have 14 days to return it, no questions asked. We'll see.
    In conclusion, Back to My Mac does not seem to work as advertised. I am curious if anyone has had a similar experience. Hope this helps someone or at least, saves you some time.

    Thanks for your thorough post. I too need to use BTMM on almost a daily basis for my job, and it has fallen short countlness times. I too have taken great pains to check all of the typical trouble shooting steps within iCloud and in the Apple keychain on each Mac etc, but after the latest rounds of system updates from Apple a few weeks ago to Mountain Lion, BTMM on one of my Macs is completely broken and unusable. I would concur that if you need remote access for "real" mission critical use, just bite the bullet and pay for a service like LogMeIn. You won't regret it and you will get real software support.

  • Back USB port does not work

    I noticed that one USB port(All other ports appear to be working)in the back of my Mac Pro does not work.
    Aside from taking my Mac Pro in for a repair, is there any other way to fix this problem?

    You can always try resetting PRAM and NVRAM…
    http://docs.info.apple.com/article.html?artnum=2238
    … and/or the System Management Controller…
    http://docs.info.apple.com/article.html?artnum=304123
    … otherwise no. You will need to take it in for repair and most likely a logic board replacement.

  • Back to My Mac - Not working on a remote network

    I have back to my mac file and screen sharing working perfect on local network, but once i get on another network it does not work at all and I am up to date and have a new airport extreme with back to my mac set up on that as well

    Hi Dan97103!
    I have an article here for you that can help you troubleshoot this issue with your Back to My Mac functionality:
    OS X: Using and troubleshooting Back to My Mac with your iCloud account
    http://support.apple.com/kb/ht4907
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Back to my Mac not working between Snow Leopard work iMac and Lion home iMac

    I have a 3.06 GHz Intel Core 2 Duo iMac at work running OS X 10.6.8.
    I have a 2.7 GHz Intel Core i5 iMac at home running OS X 10.7.2.
    At present, I am unable to upgrade the work iMac to Lion because I need to run Intel's FORTRAN compiler, which does not yet work under Lion.
    I have upgraded my MobileMe account to use iCloud on my home machine.  Because my work machine is still using Snow Leopard, I can't use iCloud on that machine just yet.
    Initially, even after upgrading to iCloud on my home machine, I was able to use Screen Sharing from either computer to use the other computer.  I accidentally clicked "Turn Off Back to My Mac" in the MobileMe settings of my work machine.  When I click "Turn on Back to My Mac" to try and turn it back on, I consistently get the dialog box "Unable to start Back to My Mac     Back to My Mac could not start because of a MobileMe server error. Try again later. If this problem persists, contact MobileMe Support."  And hitting OK brings it back to the off state.  So I can not turn on Back to My Mac at work, therefore I can not connect to my work machine from home to use Screen Sharing like I want to.
    Has anyone else encountered this problem?  Has anyone found out how to turn Back to My Mac back on in such a case?
    Thanks for any help you can give,
    Adam

    Hi,
    the current version I had was 3.2(5612) but having just checked no a newer 3.2.1 has just been released. Let me do the upgrade and see how I get on.
    Message was edited by: Pheobian

  • Back Function key is not working

    I have created report programing. and also add buttons to application tool bar using transaction 'SE41'.
    But in this case whenever I  run program  and click on Back.it is asking me to populate fields.
    Even after populating fields  and  clicking Back wont take me to BACK screen...
    It is asking for  'Put  cusron on selection'..
    Back is standard tool bar even why it is not working.
    I  set status as below.
    **Variant
    INITIALIZATION.
    **Initialize Report Global Variables
      PERFORM f_initialize_report.
      SET PF-STATUS 'STANDARD'
    Finally i write code for back function as follws.bUt I  don't want this transaction.I want back screen.
    I am submitting this report via ALV grid display from other program(By double clicking row).When i press Back it should show alv display.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
          WHEN '&F03'.
                  LEAVE to transaction 'ZCM_SEARCH_RULE'.
      ENDCASE.

    hi,
    in 'standard' status for 'back' icon have add &f03 as function key ,check it first.
    and then in the initialization write the code 'set pf-status 'standard'.
    and under start-of-selection.
    write set pf status space.(it will enables all the standard buttons back,cancle,exit...).
    now if u click on back it should wor.
    try it once.
    if u have created a button for back and assigned say 'back' code for that, then go like this.
    start of selection.
    case sy-ucomm.
    if sy-ucomm = 'BACK'.
    LEAVE LIST PROCESSING.
    (OR U CAN WRITE LEAVE PROGRAM OR LEAVE TO SCREEN 0).
    ENDIF.

Maybe you are looking for

  • Find and replace in rtf file

    hello I would like to replace a bookmarks that are already created in a rtf template file I Know how to read the rtf file ,It is just that i can't figure out how to rplace a word inside this file here is my code File docFile = new File("C:\\test.rtf"

  • Firefox 3.6.8 does not correctly display inuktitut text in an input field. Any solution?

    Firefox 3.6.8 seems to have an issue with Unicode in input fields, e.g. The following code <input type="text" value="ᕿᓂᕐᓂᖅ..." style="font-family:Pigiarniq"> should look more or less the same as <input type="text" value="ei3i6..." style="font-family:

  • Data socket open?

    I have one computer with a data socket that I write some waveforms to at ~ 1Hz.  I have another computer that reads out that data, and logs it.  My problem is that sometimes, I have to stop the vi on the data socket server machine, at which point, th

  • Import MP3 files to N97

    I have tried to import MP3 files to N97 device. I am using Nokia Music. After I copy required MP3 file into Nokia Muisc I can right click and see an option "Tranfer to" menu option. But this is disabled. Can you let me know what is wrong. I am able t

  • Premiere pro cs6 mac import failure prores and dnxhd says unsupported format or damaged file

    Hi All, I'm running OSX Mavericks and have avchd footage imported into my project.  It's all rendered out.  I'm making an intermediate file and have tried dnxhd and prores formats.  When I created a new project and tried to import either format I get