InvokeEvent.INVOKE re-dispatches when I close the application and I launch by multitask button

Hello,
on my galaxy nexus, Android 4.1, InvokeEvent.INVOKE re-dispatches when I close my application with
NativeApplication.nativeApplication.exit()
and I launch my application with the multi task manager.
When I launch my application with the application icon, I don't have this problem.
Thanks.

It isn't a bug, it's the default behavior for android.
<activity android:launchMode="singleTop">
          <intent-filter>
                    <action android:name="android.intent.action.MAIN"/>
                    <category android:name="android.intent.category.LAUNCHER"/>
          </intent-filter>
          <intent-filter>
                    <action android:name="android.intent.action.VIEW"/>
                    <category android:name="android.intent.category.BROWSABLE"/>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <data android:scheme="mycustomuri"/>
          </intent-filter>
</activity>
the solution is to add android:launchMode="singleTop" in the application descriptor

Similar Messages

  • Why is there a clicking sound when I close the cover and enter sleep mode?

    why is there a clicking sound when I close the cover and enter sleep mode?

    Hi katesvca,
    I too have an iPad smart cover, and all that clicking sound is is basically the standard lock sound for iOS. The Smart cover is equipped with magnets inside, and the iPad is also equipped with magnets, and when those magnets are closed together the iPad goes to sleep.
    I hope this answers your question.

  • I bought the Keynote app for my MacBook, but when I open the application and try to install it, I get an error message saying that the application will not work with my MacBook. What gives? And, can I please request a refund? ($19.99 = a week's groceries)

    I bought the Keynote app for my MacBook, but when I open the application and try to install it, I get an error message saying that the application will not work with my MacBook. What gives? And, can I please request a refund? ($19.99 = a week's groceries).
    Thank you for your help! - I did try looking for all available specs about Keynote on the Apple iTunes website, and found nothing that could help me. HELP!

    1
    Close all iWork applications
    2
    Uninstall Keynote; this must be done with an application remover tool to delete the installation properly. Appcleaner is known to work correctly for this purpose, it is free and can be downloaded from here: Appcleaner Download
    3
    empty the trash
    4
    shutdown the Mac and restart. After the start up chime, hold down the shift key until the apple logo appears
    let the Mac complete the start up procedure completely, it will take longer than usual as the hard drive is being repaired
    5
    Reinstall Keynote by logging into the Mac App Store using download / install

  • I have a problem when i close the prgram and i open it agin it open on the page which i closed at it

    when i close firefox at any page and also when i close my pc and then i open the program i find it open on last page which i closed at ,, although i made home page for it to open at and it doesn't make the order

    Check in preferences > general > Startup: Do you have "Show my windows and tabs from last time" selected? If so change to "Show my home page" (or blank page).
    Note: this may happen when quitting Firefox, and you inadvertently click "Save and Quit" and select "Do not ask next time".

  • HT201177 My Macbook pro: After sleeping, the screen comes on momentarily then blacks out.  When I close the lid and reopen it the same thing happens.  The screen only does this after waking up from sleeping.  Help, thanks!

    Macbook Pro:
    When I raise the lid after sleeping, the screen comes on momentarily then backs out.  If I close the lid and raise it again, the same thing happens.  It is sometimes necessary to force quit.  Once restarted, there is no problem unless the lid is closed for a short time and the machinge goes to sleep.
    Help! Hesperia fire captain

    Hi ...
    Try Resetting the System Management Controller (SMC)

  • Executables throw a widows error when you close the application

    I have this problem on several of my labview executables.  I can open and runt eh program with no errors.  But when I close the program by any method, I get a pop up error in windows. Stating:
    "Application Name" has encountered a problem and needs to close.  We are sorry for the inconvenience. 
    I get the option to send the info to Microsoft.  Another error pops up Stating the following:
    WinsockAsyncSelectWindow:  Application name.exe - application error
    The instruction at "0x7c90e470" referenced memory at "0x03182a2c". The memory could not be "read".  Click on CANCEL to debug the program.
    This is really annoying... Anyone know why this error is poping up?

    Hi Jason,
    Could you please provide us with some more information regarding your executable?
    What version of LV are you using?
    How are you stopping the executable (stop button?  abort button?)  You should always use a stop button, not the abort button (the stop sign looking glyph on the toolbar) to ensure that all of your references have been properly closed. 
    Do you see this performance when running the executable on the development machine?
    Do you get the warning every time, or only some of the time?
    What all are you doing in the executable?  I'd be curious to know if it was something particular to your code or the environment.  One way to test this is to build a "dummy" executable--just one that does something as simple as count iterations, and see if you get the message or not.  
    Please provide a little more information and we'll do our best to help. 
    Cheers, 
    Marti C
    Applications Engineer
    National Instruments
    NI Medical

  • How can I get my desktop page to open when I close the browser and then re open it?

    when I click the red x to close the browser, when I come back to open the browser later, the last page I was viewing. last session opens, even all other tabs behind it, instead of my google page (my home page)? can this be fixed) I know I can just click the google word in the search bar, but should not have to do this!

    {
    "application": {
    "name": "Firefox",
    "version": "32.0.3",
    "userAgent": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0",
    "supportURL": "https://support.mozilla.org/1/firefox/32.0.3/WINNT/en-US/"
    "crashes": {
    "submitted": [],
    "pending": 9
    "modifiedPreferences": {
    "browser.cache.disk.capacity": 358400,
    "browser.cache.disk.smart_size.first_run": false,
    "browser.cache.frecency_experiment": 3,
    "browser.places.smartBookmarksVersion": 7,
    "browser.sessionstore.upgradeBackup.latestBuildID": "20140923175406",
    "browser.startup.homepage_override.mstone": "32.0.3",
    "browser.startup.homepage_override.buildID": "20140923175406",
    "dom.mozApps.used": true,
    "extensions.lastAppVersion": "32.0.3",
    "gfx.direct3d.last_used_feature_level_idx": 0,
    "network.cookie.prefsMigrated": true,
    "places.history.expiration.transient_current_max_pages": 104858,
    "places.database.lastMaintenance": 1413230897,
    "plugin.disable_full_page_plugin_for_types": "application/pdf",
    "privacy.sanitize.migrateFx3Prefs": true,
    "storage.vacuum.last.places.sqlite": 1413230897,
    "storage.vacuum.last.index": 0
    "graphics": {
    "numTotalWindows": 1,
    "numAcceleratedWindows": 1,
    "windowLayerManagerType": "Direct3D 10",
    "windowLayerManagerRemote": false,
    "adapterDescription": "AMD Radeon HD 7670M",
    "adapterVendorID": "0x1002",
    "adapterDeviceID": "0x6840",
    "adapterRAM": "1024",
    "adapterDrivers": "aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64",
    "driverVersion": "13.151.0.0",
    "driverDate": "8-19-2013",
    "adapterDescription2": "",
    "adapterVendorID2": "",
    "adapterDeviceID2": "",
    "adapterRAM2": "",
    "adapterDrivers2": "",
    "driverVersion2": "",
    "driverDate2": "",
    "isGPU2Active": false,
    "direct2DEnabled": true,
    "directWriteEnabled": true,
    "directWriteVersion": "6.3.9600.17111",
    "webglRenderer": "Google Inc. -- ANGLE (AMD Radeon HD 7670M Direct3D9Ex vs_3_0 ps_3_0)",
    "info": {
    "AzureCanvasBackend": "direct2d",
    "AzureSkiaAccelerated": 0,
    "AzureFallbackCanvasBackend": "cairo",
    "AzureContentBackend": "direct2d"
    "javaScript": {
    "incrementalGCEnabled": true
    "accessibility": {
    "isActive": true,
    "forceDisabled": 0
    "libraryVersions": {
    "NSPR": {
    "minVersion": "4.10.6",
    "version": "4.10.6"
    "NSS": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "NSSUTIL": {
    "minVersion": "3.16.5",
    "version": "3.16.5"
    "NSSSSL": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "NSSSMIME": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "userJS": {
    "exists": false
    "extensions": [
    "name": "Logitech SetPoint",
    "version": "6.5",
    "isActive": false,
    "id": "{F003DA68-8256-4b37-A6C4-350FA04494DF}"
    "name": "Norton Toolbar",
    "version": "2014.7.8.23",
    "isActive": false,
    "id": "{2D3F3651-74B9-4795-BDEC-6DA2F431CB62}"
    "name": "Skype Click to Call",
    "version": "7.3.16540.9015",
    "isActive": false,
    "id": "{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}"
    "experiments": []
    }

  • Record locks created when user closes the Browser and not the Web Form

    Hi. We sometimes encounter the issue where a user updates a record, locking the record on the table, but then they unexpectedly closes the browser without saving by clicking the X in the upper-right of the browser window. Then when another user comes along and attempts to edit that record they get the message Unable to Reserve Record. The orphaned record lock eventually does seem to clear itself out, but that can often take 15-20 minutes.
    Is there any way to speed this up? Or to pragmatically keep this from occurring? Either on the database side or with some code in a particular application?
    Please let me know your thoughts. Thanks in advance.

    If a user closes the browser window the forms runtime on the application server holding the locks is in most cases still up and running. The FORMS_TIMEOUT controls on how long a forms runtime on the server is up and running without the client applet not sending a heartbeat (See MOS note 549735.1). By default this is 15 minutes which would explain your locks being held 15 minutes.
    You could decrease the FORMS_TIMEOUT in the default.env, so the forms runtimes get cleaned earlier and thus the locks get released earlier.
    Note that if you have blocking client_hostcalls with webutil this might be a problem, as it prevents the forms applet from sending the heartbeat and after the FORMS_TIMEOUT passed while the forms applet is blocked the forms runtime on the server gets closed.
    cheers

  • Even though I set "Use custom settings for history" when I close the window and recheck it has set itself back to "Rember History"..why?

    I am having trouble getting the settings to stay and can't figure out why...no matter what I do it just resets every time back to the
    "Remember History" and it won't save passwords on some of my sites.

    Firefox shows the "(Never) Remember history" choice if all the history and cookie setting are the default.<br />
    Make at least one change to the default setting if you want "Use custom settings for history" to stay selected.<br />
    Otherwise Firefox will revert to "(Never) Remember history" if you return to the Privacy tab.<br />
    The choice "Use custom settings for history" will stay selected as long as not all settings are the default to make you aware that you made changes.<br />
    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    * Websites remembering you and automatically log you in is stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    See also:
    * http://kb.mozillazine.org/Cookies
    * [[Enabling and disabling cookies]]

  • We have non admin users on Windows 7. They change the homepage and it works for that session. When they close the browser, and restart it again the default homepage is shown.

    Windows 7 Sp3. Using Firefox 7.01
    Non admin users.
    Can change homepage to whatever they like and it will work.
    BUT when they close firefox and open it again the home page goes back to default setting

    Update.
    This looks to be a mozilla.cfg setting. If I take out the pref("browser.startup.homepage","ourwebpage");
    it loads the basic firefox "FirstPage"
    How do I get around adding a default homepage that can be changed by the user?
    I have tried adding
    defaultPref.. .. then the webpage info.. BUT it retrurns a Failed to read the configuration file. Please contact your system administrator.
    Do I need to create a prefs.js file?
    And if I do how do I get it to work for each new user that logs into that machine?

  • When I close the browser and then re open it it does not go to the home page but opens to the last page that was open when I close it.

    Every time We have been closing the browser for the last few days when we restart the browser, regardless of weather we shut down the computer or not, it reopens to the last page that was opened. I cleared out and deleted the history but it did not help.

    Maybe you currently have your home page setting to "Show my windows and tabs from last time" instead of "Show my home page".
    *Firefox button > Options > Options > General tab > Startup > "When Firefox starts"
    *If using the Menu Bar: Tools > Options > General tab > Startup > "When Firefox starts"
    *See --> [http://support.mozilla.com/en-US/kb/How+to+set+the+home+page How to set the home page]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • My MBPr (mid 2012) displays a black screen on startup but when I close the lid and open after a few minutes, it seems to wake up as it should.

    Can anyone advise what is going wrong on startup and what steps I can take to resolve this issue?  This has been occurring for the last month or two.
    The specs of this machine are:
    Macbook Pro Retina (mid 2012)
    OS X Mavericks 10.9.4 (13E28)
    2.6GHz Intel Core i7
    16GB 1600 MHz DDR3
    Intel HD Graphics 4000
    256GB SSD

    Can anyone advise what is going wrong on startup and what steps I can take to resolve this issue?  This has been occurring for the last month or two.
    The specs of this machine are:
    Macbook Pro Retina (mid 2012)
    OS X Mavericks 10.9.4 (13E28)
    2.6GHz Intel Core i7
    16GB 1600 MHz DDR3
    Intel HD Graphics 4000
    256GB SSD

  • My macbook pro won't go to sleep when I close the lid

    I've been having this problem for a couple of years now, and it's getting pretty annoying.
    I got this MacBook Pro in April of 2011. Otherwise, it works great. It goes to sleep when I go up to the apple menu and select "sleep." BUT, when I close the lid, it stays on. Heaven forbid I don't have it plugged in, because then the battery will be shot! It also won't go to sleep automatically when I leave it for a long time. Yet another potential battery drain.
    How do I fix it so that it goes to sleep automatically when I close the lid and when I leave it alone for a while?
    In Energy Saver, I have checked all the boxes necessary: "Put the hard disk(s) to sleep when possible" "Wake for network access" and "Automatically reduce brightness before display goes to sleep."  
    Am I missing something here, or does my computer just have a defect?

    I had the same issue.
    I used an external monitor but all of a sudden when I closed the lid my Macbook Pro did not go to sleep!
    I solved the problem with a SMC reset.
    Try to do it...

  • When I close the lid to my Macbook Pro, it won't stay awake.

    I am trying to hook up a SAMSUNG SyncMaster B2330 monitor to my MacBook Pro so that I can close the lid and work with my wireless mouse and keyboard instead of the laptop screen.  I have limited desk space and I dont have room to have two monitors open. 
    When I close the lid and wiggle the mouse, my computer wakes up for a second, but then quickly goes back to sleep. I am not currently plugged into power, but I am running on battery.
    Becky

    Connect the power cord and hit the space bar on the keyboard.
    Apple Portables: How to use your computer in closed clamshell (display closed) mode with an external display

  • When I customize things like homepage, privacy, history they all change back to Firefox default when I close the browser

    Firefox will not remember my customized options. I set my homepage and privacy options and when I close the browser and reopen, it will be back to Firefox default homepage.

    Sounds like you could have a locked or corrupt preferences file. Try this article for steps to fix that - [[Preferences are not saved]].

Maybe you are looking for

  • How to change font size on Write screen only

    The Thunderbird Write (compose) screen allows font choices for HTML e-mails, but not font sizes in traditional 'points.' There is an up/down button set on the screen, and a setup option for small/medium/large, etc. By sending myself mail, and reading

  • Numbers of hours in two different dates

    I have two days and it is in df = new SimpleDateFormat("yyyyMMddHHmmss") format. start date is 20041203180000 ( year, month, day of month, hours, minutes ) end date is 20041204050000 How do I calculate the number of hours between those two days. Than

  • ROUND and TRUNC function

    Guys, About the query below, how is the output and how SQL treats that? SELECT TRUNC(ROUND(156,00,-1),-1) FROM DUAL Thank you!

  • Converting from excel 2004 to ical with Snow Leopard

    tried to import data via iCalMaker but was informed by the software maker that they don t support Snow Leopard. So ... a bit lost. I have the custom of preparing data in Excel, and would want to import some data into iCal. However I cannot find a goo

  • SAP-Script - Draw Table (Boxes) with variable number of lines

    Hello, I want to create a Table with Frames in a SAP-Script Form. First of all I don´t know the position of the table in the window main. It can be page 2 or 3 on top or in the middle. But i have to describe a position like POSITION YORIGIN '12.95' C