Complete closure map

Hello

I wonder if it is possible to completely close a card? As in this moment my card just application gets 'pool' which puts the card into a State where it doesn't have either closed or open.

As I have a webView in my card, I would like (if possible) to completely close the map rather pooling it so that when the card is closed, all content in the Web mode is destroyed so that the next time that the card is opened, the webView itself would be handed so there not the same loaded web page as it did before the closure of the card.

Thanks in advance

I have not tested, but try to add.

In the applicationui.cpp constructor:

    connect(m_invokeManager,
                 SIGNAL(cardPooled(const bb::system::CardDoneMessage&)), this,
                 SLOT(pooled(const bb::system::CardDoneMessage&)));

In the slot of pooling:

void ApplicationUI::pooled(const bb::system::CardDoneMessage& doneMessage) {
    Q_UNUSED(doneMessage); // Avoid a compiler warning

    bb::Application::instance()->quit();
}

In applicationui.hpp:

private Q_SLOTS:
    /**
    * This slot is triggered when a card is chosen to be pooled by the system after it is closed. The card should clear it's UI
    * and states so that it is ready for the next invocation.
    */
    void pooled(const bb::system::CardDoneMessage&);

Tags: BlackBerry Developers

Similar Questions

  • Complete closure SocketConnections correctly

    Hello

    I'm having a problem with a persistent socket connection don't close does not correctly (at least I think that's the problem). Here is my scenario:

    I have an iPad, which has an application that listens to incomming socket connections and responds to the need (I'm not in control of this application). Then I on the side of BB. The general idea is, I try to open a connection on WiFi, a specific IP address. If this succeeds, I opened an InputStream and an OutputStream. Some messages are sent back and forth between the two devices (starting with a reading on the River - from the perspective of BB), and then wait for us. The iPad or BB can then initiate communication more. When it does not, the two are pending. Water courses are never closed, unless the BB or iPad outputs, in which case both are closed, as well as the connection.

    My problem is the following: if I close the BB app and off the device (i.e. ensuring that the app is completely closed and not only out of focus), then the next time I want to create a connection, it is just forever. Socket error (IOException), I get a general after about 30 years. I have to restart the iPad and try again to make it work again. So it seems that the BB is not completely close the connection, or the iPad is not clean properly. As I am not in control of the iPad code, I can't confirm. However, I think that it is on the side of BB as there is an iOS and Android version of my BB application, and they do not have this problem.

    I also noticed that I get the message (s):

    Background switch detected for APP_NAME (241) which has called id = 1mode FG = open - solomode DO NOT tunnel

    Background switch detected for APP_NAME (241) which has 1 tunnel (s) open - defocus called

    When I close the application on the BB.

    I use the following code to close the water connections (and make sure that this is called when the application stops):

    try {
                    if (inStream != null) {
                        inStream.close();
                        inStream = null;
                    }
                } catch (Exception e) {
                    System.out.println("Error closing instream: " + e.getMessage());
                }
                try {
                    if (outStream != null) {
                        outStream.close();
                        outStream = null;
                    }
                } catch (Exception e) {
                    System.out.println("Error closing outstream: " + e.getMessage());
                }
                try {
                    if (connection != null) {
                        connection.close();
                        connection = null;
                    }
                } catch (Exception e) {
                    System.out.println("Error closing connection: " + e.getMessage());
                }
    

    Another thing to note: I do things in the synchronized blocks, during the opening and closing of connections. I do also all the networks on a separate Thread. I make sure that all exceptions related to this to ensure that connections are closed. The connection, water courses and outstream instances are variable class.

    In a main loop, in the non-Main-Event-Thread, I check if the connection is closed, in this case, I wait a few seconds (Thread.sleep), then try opening the connection again. So I'm constantly returning the IP address.

    If I ever close the simulator/device and the connection seems to be able to connect/disconnect perfectly, with both applications open, then all closed and opened again, etc.

    Is there something I should be aware of the wrt completely closing Sockets, clean it properly, using blocks in sync, etc. ?

    I opened the connection as (all this surrounded by the try/catch/finally block and a synchronized block):

                   connection = (SocketConnection) Connector.open("socket://" + url + ";interface=wifi", Connector.READ_WRITE, true);
                    inStream = connection.openInputStream();
                    outStream = connection.openOutputStream();
    

    Thank you very much!

    P.S. I've been Googling/search forums since last week, and did not close - I hope that I have not missed anything.

    I think I might get a little. I can't believe that I don't check this before. I've installed wireshark to check what WAS going through, etc. I noticed that very little was coming or going to the iPad (even though he could browse the web, etc.). So I tried to make a simple ping of my machine. Nothing. WHAT? So I rebooted the iPad. It worked again... and then stopped? So I rebooted the router... He continued to work. And work... And work...

    Without doubt, it stops again. But it seems that there may be nothing wrong with the iPad or BB at all. It could just be something questionable with my router! I have... Can't... Believe not!

    I will continue to look into it and watch what is happening... but in the meantime, I'm terribly sorry for wasting your time! * so embarrassed *. Thanks for your help.

    PS, I know this isn't the place for this, but if anyone has any ideas as to why this can happen, I would be very grateful to know. It cost me a few days of time wasted dev.

  • How to measure the time for each mapping?

    I use oracle11g with OWB.

    I have several mapping and each dimension tables to update the mapping.

    I want to measure how long it takes to complete each mapping. What is the best way to find the total time for each mapping.

    One way is, we can have POST MAPPING and PROCESS of MAPPING PRE. I can trigger the stored procedure to enter the start time and the end time of each match. On this basis, I can calculate the total time for each mapping. But I have 50 mapping. Now, I need to write 50 different stored procedure and open the POST-PROCESSING of the MAPPING and PROCESS OF MAPPING of the PRE for each mapping. It is complex.

    Is there another way, we enter the total for each mapping of execution? Y at - it that no data in OWF_ MGR dictionary can help on this?

    I would be grateful if someone can help me on this.

    He will remain forever unless you purge it explicitly.

    See you soon
    Katia

  • Is mapping dimension AWM - possible to load the data in two tables of entry?

    Hi all

    I have two tables ProductFamily (parent level) and products (child level).

    I want to load a dimension of those tables where the parent-child relationships are maintained (I use AWM).

    I created a map with these two entry tables, but the loaded data has no relationship.
    So, how do I do that? Is it possible to load dimensions where different levels get data from multiple tables?
    Is any type of Carpenter available in AWM?

    Thank you

    ------------------------

    A few Notes:

    -I don't want to use OWB here that my data are clean
    -In AWM, when I loaded the data in a single view that contains two tables of input data, it worked fine. But it's my worst case option.

    You must use Dimension option in snowflake in the mapping screen of size for the Product Dimension (as opposed to the default style mapping - star schema dimension).

    This will modify map entries to include a separate parent for each level of hierarchy level / that is to say, for each level of hierarchy / (unless a higher level of the hierarchy), you must specify the parent level key in addition to the key current level, code/name/description/other attributes etc.

    You can make the mapping or... use the icons at the top of the map screen.
    mode drag/drop by dragging the relational column on dimension - level/hierarchy/attribute model
    -or-
    the table expression mapping mode that gives the same effect... by dragging a column on an attribute defined in the .

    . the format of .

    HTH
    Shankar

    Note1: Complete the mapping of a sudden... B & w switching mapping modes cause the mappings to reset.
    NOTE2: assumes that your data are correct foreign key table parent level: ProductFamily exists in the child level table: products.

  • Impossible to update 12.4.1

    I tried to upgrade to 12.4.0.119 12.4.1 days now without success.

    I tried to do it from the App Store, as well as through upgrade of iTunes itself.

    All the ideas/guides/help appreciated please!

    Please ignore previous as issue is now resolved - reboot and complete closure sorted.

  • "No reagent" receive when closing a tab.

    I already did some troubleshooting as browser was slow. I have reset the defaults and most operations are best. However, when a TAB is closed the screen turns white and title bar displays "no answer." Clicking X a couple of times, there is complete closure. Is there something unique about this operation which don't have no other crashes? Thank you very much.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    You can check for problems with the sessionstore.js and sessionstore.bak files in the profile folder of Firefox that store session data.

    Delete the sessionstore.js file possible sessionstore-# .js files with a number and sessionstore.bak in the Firefox profile folder.

    Delete sessionstore.js will cause App Tabs and groups of tabs open and closed tabs (back) to get lost and you will have to re-create them (take note or bookmarks if possible).

  • How do I enter the BIOS in Satellite C50-A006

    Hello!

    I wanted to get into the BIOS to select the boot sequence in Satellite C50-A006 running with Win8, but I was unsuccessful. I tried pressing F2, F8, F12, ESC and DEL but no luck. Also tried Googling, also no luck.
    Help, please.

    Thank you!

    Hello

    As a first step you must perform complete closure. After doing this, you can start the machine and enter the BIOS settings.
    How to proceed to a complete stop, you can read on - http://aps2.toshiba-tro.de/kb0/TSB2B03EY0002R01.htm

    Try it please.

  • Satellite Z930-130-how to REALLY turn off?

    Hi all

    Also funny that my question may sound... it is really serious!
    I have big problems in the course of the life of the battery (not so much a single charge, but affecting the "life" of the laptop itself!) because it seems even to be a way to disable COMPLETELY this laptop! It will be as a joke for a laptop of advertising with a 'eco' label that is supposed to help reduce the waste of natural resources (which was an important part of my purchase decision).

    When I put the laptop Hibernate or turn it off by long-pressing the 'Power' button, battery mode indicating LEDS etc are always on, the battery is slightly drained even when the laptop is turned off. While of course LED will certainly not use a lot of power, it means that the next time I plug it into my computer, + a new charging cycle is initiated + that could have been avoided without it. With a battery usually survive 1000 charge cycles, which will force me to buy a new battery (by the way: what a shame how "yesterday" and that the battery is built-in and not replaceable by the buyer!) within 2 years if I plug off a few times every day.

    Alltogether that sounds a lot like "planned obsolescence" and I'm annoyed by the mere thought of support something like that. Basically, I'm very happy with the Z930, so, I'm more frustrated by this completely unnecessary battery drain. No idea how to activate these LED to the wide and really turn off computer? Or an update of the BIOS just the thing?

    BTW, I would be also grateful for advice on how to put pressure on the softer touchpad mouse buttons and easy - on my laptop, they have to be hurry * very * hard.

    My model: Toshiba Satellite Z930 - 130 33.8 cm (13.3 Zoll) Ultrabook (Intel Core i7 3667U, 2 GHz, 4 GB RAM, 256 GB SSD, Intel HD 4000, win 8)

    Thank you, r.

    If you write about complete closure that you can find the answer on follow Toshiba document - http://aps2.toshiba-tro.de/kb0/TSB2B03EY0002R01.htm

  • Satellite C55-A-1N2 - Windows is broken and without access to the repair option

    Hello

    One of my friends had a Satellite C55-A-1N2 nine November 2013 with windows 8.1.
    The serial number is: yd344983s

    Initially, there was a problem with wifi.
    I found a lot of adware...

    I have uninstall most of them by hand and clean everything with adwcleaner.
    The laptop works very well, I cut the DNS client service and add anti-pupsadware in the hosts file to prevent any new installation of adware.

    Everything was ok and give again to a friend.
    But the new commissioning, windows was slow, unable to connect wifi, enter in the config panel, do anything actually.

    I tried according to manual, press F8 and power, but who turns just to log on windows.
    I also tried F12 and tried to use the CD of windows 7 without success.

    You have ideas of what I can do?
    This looks pretty bad.
    Thank you.

    Mickael
    France.

    If you want to restart the laptop and use the repair options or recovery, you must perform the complete closure. How to do that you can read on http://aps2.toshiba-tro.de/kb0/TSB2B03EY0002R01.htm
    Reboot the laptop and if you want to use the repair options or recovery check it please the instructions on http://aps2.toshiba-tro.de/kb0/TSB2A03ES0000R01.htm

    PLESE NOTE: do not do some experiences before you have created a recovery media. Use the preinstalled recovery media creator tool and create recovery DVDs or USB.
    If there is a problem, you can use this recovery media to reinstall the original version of Windows.

  • How to get into BIOS and boot on Satellite C50-A-1GZ menu?

    Hello

    in other words, how to start the BIOS and boot my Toshiba C50-A-1GZ menu?
    Thank you

    Hello

    As a first step you must perform complete closure. How to do that you can read on http://aps2.toshiba-tro.de/kb0/TSB2B03EY0002R01.htm

    Restart your computer and press F12. There you should find the configuration options for the BIOS settings.

  • Satellite L650 - Fan not kick (work) after the fashion 'sleep'

    Hi all

    The fan does not work when you restart the standby mode, but only after complete closure.
    What causes this and how can I solve this problem?
    Toshiba L650 - 170 system unit

    Thank you!
    Luke

    A number of questions:
    Have you noticed the fan operating with the preinstalled Toshiba system problem?
    Have you noticed this first day of purchase?

    The Satellite A660 is a little old and already abandoned the model and therefore, it would be interesting to know if something has changed in the past

    Anyway, there are different modes of sleep (sleep is divided into four States, S1 to S4)

    S1, to suspend him (POS): all processor caches are flushed, and the CPU stops the execution of the instructions. The power of the CPU and RAM is maintained. Devices that do not indicate that they must remain lit, can be turned off.

    S2: CPU power off. Dirty cache is emptied to the RAM.

    S3, commonly known as secondary, sleep or Suspend to RAM (STR): RAM remains powered.

    S4, hibernation or Suspend to Disk: all content of main memory is stored in a nonvolatile memory such as a hard drive and is turned off.

    Using the Powercfg command you will be able to check this "standby" and might it change too.
    Details here: http://en.wikipedia.org/wiki/Powercfg
    It would be interesting to know how "sleep" you use exactly and if the fan would be using a "sleep" mode

  • HP OfficeJet 3830: Network required for HP all-in-one 3830

    I can't complete save map Ink Instant account because I did not request Code (where I could not go to the next step). My printer showed the required message network. I don't have a wireless rounter. So I disable wireless radio on the printer, and the used USB connection between the printer and the computer. Of course, I have internet access on my computer with Time Warner Cable package family (TV, phone, Internet). What to do to connect to my network printer? Thank you

    Hello

    Your printer must connect to the internet for your instant subscription of ink work and allow you to enable web services and print your certificate claim code.

    The USB connection between the printer and the computer will not allow an internet connection, so you will need to connect to the wireless printer to get an internet connection.

    How is your computer connected to the internet? Is it connected via ethernet cable or wireless?

    If you look at the back of your set-top box, Warner cable, should be a wireless password that will allow you to connect your printer to the internet. On the front panel of your printer to find the WiFi menu and enter the password to connect.

    Let me know if you have any problems and I can help your new.

  • Re: Satellite A500 will turn on automatically at 23:00

    Hi all

    I have a Satellite A500 who decides he wants to get into itself every night about 23:00.
    I disabled all the tasks in the Task Scheduler and it still happens.
    I have no other idea I can do to prevent this.

    Can anyone help. It starts from the complete closure. It is not in sleep or Hibernate either mode.

    Thank you

    Hello

    There is a problem similar but if starts up to 8.20

    http://APS2.toshiba-tro.de/KB0/FAQ0302TJ0000R01.htm

    In addition, you should try to disable WOL

  • Good Apps?

    Can anyone suggest good apps that are made for the Xoom? It's hard to find on the market because there is no section for tablet apps unlike the American version. Its getting annoying having to type in the 'honeycomb', 'xoom', 'Tablet', etc. to find a wallpaper honeycomb for the android phones and other useless stuff.

    I want to find some optimized for tablet apps for entertainment, documents, radio, television, and games. So far its proven a challenge.

    Hope this helps

    SOCIAL, MESSAGING, EMAIL, CHAT APPS:

    Touchdown for tablets

    -Exchange

    App

    Trendster HD

    -Twitter trends

    Friend Stream

    Tango video calls Andchat

    -IRC client


    Browsers:
    Opera Mini 6 Dolphin Browser HD


    PRODUCTIVITY/DESKTOP APPLICATIONS:

    Due today

    -To-do - list

    Docs 2 Go

    GoAruna

    -File Manager and cloud storage

    Droid Scan Pro

    -scanner app

    Quick Office HD Pro

    NEWS/Stock Market APPS:

    Pulse

    -Blogs aggregator

    CNN

    -Slippery design

    USA Today

    HNDroid HD

    -Hacker News feed

    NYTimes

    Financial Times

    Alert stock for the shelves

    F5 Reddit browser

    News

    -RSS Reader

    ENTERTAINMENT APPLICATIONS:

    Movies (Flixster)

    IMDB

    (No mention of)

    Tablet

    supported, but the interface is now clearly optimized for tablets)

    Sports apps:

    Project Manager 11


    PHOTO/VIDEO APPS:

    SmugFolio for Smugmug

    FlickFolio for Flickr

    Zfolio for Zenfolio

    PicFolio for Picasa

    LifeShow Player

    -Slideshow software (beta version)

    PicSay Pro


    APPLICATIONS UTILITIES:

    Grocery IQ

    My PC phone

    My Verizon Mobile for tablets

    myLock for XOOM

    -quick release app

    File Station

    -file browser

    aCurrency Pad

    -A converter of currencies 180 + with hourly update of exchange rates

    myLock for XOOM

    -quick release app

    Tablet keyboard

    Proximity wide screen

    Volume of the status bar

    ER screenshot

    (requires root)

    Use CPU Tablet monitor

    Networking/Remote applications:

    Citrix Receiver

    My PC phone

    Remote Desktop Client

    -Parameters selection is not optimized honeycomb, but it works perfectly to your choice of the resolution once connected

    Splashtop Remote Desktop

    IP Profiler

    LogMeIn Ignition

    Wyse PocketCloud RDP

    Keyboards:

    Thumb keyboard

    Education:

    Monkey Math Tablet Edition

    Animals for tablets

    Books/readers:

    Kindle

    WEATHER APPS:

    AccuWeather

    WeatherBug

    (beta)

    xWeather Complete


    MAP/NAV APPS:

    Google Sky Map

    Earthquake! for tablets

    -Mapping of seismic activity

    Google Earth

    -I supposed to be optimized for now bicoeur. Works fine, but no optimization of honeycomb as of yet.


    MISC APPS:

    Androidify

    Agricola score sheet

    -No idea what is Agricola, but it is made for honeycomb!

    SoundHound

    Draw free - honeycomb Tablet

    The elements - Tablet

    Book of Snaml for Android

    PaintBox for tablets

    Snaml book

    Minecraft Wiki

    APPLICATIONS OF THE MUSIC:

    Drum Machine electrum


    MEDICAL / health APPS:

    Google Body

    -Awesome!

    Quick calorie counter honeycomb


    GAMES:

    Shortyz crosswords

    GUN BROS

    Fruit Ninja THD

    Angry Birds Seasons

    Cordy

    Monster Madness

    Rocket Bunnies

    Backbreaker THD

    Talk about Tomcat

    Word worm HD

    Hardwood Solitaire IV

    Air Attack HD

    -portrait-only mode, but looks and plays a lot.

    Spectral Souls

    3D virtual Table tennis

    Samurai II: Vengeance

    Radiant HD

    Totemo HD

    Everlands HD

    HD space war

    Evac HD

    Buka HD

    Vendetta online

    Dungeon Defenders first wave

    Holotaire

    -Solitaire game

    Minesweeper for honeycomb

    SpeedX 3D

    Tank hero

    WALLPAPERS:

    Starfield Xoom

    Xoom-star

    Golf course

  • How to link Highway segments 2010

    Hello

    How can I create a segment of Highway 2010 link to get a complete picture, map and description of my trip?

    Thanks for a response

    Lutz

    ......

Maybe you are looking for

  • I can't get Firefox Safe mode.

    Equipped with Windows Vista and latest Firefox. Can't get out of safe mode. I rebooted several times, but still does not work.

  • How to locate the record that indicates a library search result (bookmarks)?

    When doing a search in the signet library and you get a result (s) URL of the file that contains the information of the URL is unknown or apparently unknown. How can I find the folder that stores the bookmark information.Information on the result (na

  • Satellite A215: chicony webcam not working - locked by another application

    Hello. I am desperately looking for help with my webcam Chicony 2.0 integrated who settled in my laptop Toshiba Satellite A215.It did not work properly since I was the last computer in August 2007.Always says webcam locked by another application. Now

  • 14 - d056tu laptop HP: Downgrade to Windows 7

    I bought HP 14-d056tu Notebook PC a few months back, I'm not comfortable with windows 8.1, so I want it downgrade to Windows 7. The more sad about this is, I bought this laptop based Thailand on a site online in India and now moved to Australia. can

  • NOR-5781 Baseband Transceiver and OR SMU-7962R (FPGA)

    I'm looking for an example of code to transmit videos using OFDM in LabVIEW between two different units of the PXI. I have two different sets of NOR-5781 Baseband Transceiver and NI SMU-7962R (FPGA) installed in two PXIs. One is the sole issuer and a