Warn when the application moves to the State active or inactive?

I can't find the right search words.  I want to be notified when the application becomes idle / reduced due to:

user, reducing to the minimum the app

When the unit is put or paused

I also want to know when:

App become active / goes to the foreground

How can I check for these events?

Hello! Check the Application signals: instance() in Application.hpp:

void thumbnail();
fullscreen() Sub;
void invisible();
void asleep();
void awake();

Tags: BlackBerry Developers

Similar Questions

  • Unable to get the correct rules table result when the State is unknown

    Hi all

    I use OPA version 10.4. I'm writing a rule by using a table of rules. Requirement is such that when the State is unknown then conclusion should evaluate to 'Others' (for example). Now, I have a condition (text) attribute and attribute of conclusion (text). Now when the condition attribute value is "abc" then attribute of the conclusion must be "xyz" but when the condition attribute is 'unknown' or anything else then attribute conclusion must be 'other '. I tried to implement this in the two table rules in word doc and also in excel table of rule but failed to get the desired result. It assesses the 'unknown' conclusion when the condition attribute is 'unknown '. Please suggest.

    Thank you

    Mounia

    ruleTable3.JPG

    ruleTable2.JPG

    Hi Pascal,.

    As the table of treaty rules the rules in the top-down approach, so the 'unknown' State should be written before the value condition.

    If she meets the condition of value firstly she neglects the unknown state and gives the value of the conclusion as 'unknown '.

    Hi Sean,.

    Want your comments on that.

    See you soon,.

    Arup

  • Calling a function only when the State is active

    I turn to find the event just to call a function only when the status is active. In fact, I created a State to display the 'product details' click and once the system changes to this State - I have to perform a function.

    Here's the context:

    Let's say that you are on the home page where you will need to click on a product to see details. By clicking on the product, the State to view the details of the product will be activated and a variable inside the new state you will receive all the data (from the class of product). But I discovered Flex run all States at the beginning and we need to watch how declare our function to make sure that we do not have a null to a variable/object reference. Given that value is moving to the State only when the click event to occur, the process of globalization, execution of all States at the beginning will not have any value yet (for the specific product to deal with in the State of the productDetails). So I can't use creationComplete to perform a simple function like setSpecs(), where all the values (for example, width, height, circumference, diameter, price, etc.) will be instiate specific labels.

    What event to use to call a function internal once we are in the State? Just using the creationComplet and stated if he check the currentState = that I have to work on is not enough. I tried 'activate', 'show', 'enterStage' and many others, but without success. I tried to search the Internet, but it seems that this problem is not popular enough to generate sufficient results.

    But I know that it is possible in the case otherwise it will be is not logical and since Flex work very well with the event, I found the right event. It's something basic I know, but when you do not know, it seems difficult to find! ;-))

    Thanks Greg!

    I agree, this is a better method. So I'll change my SENSITIVITY to use viewStack instead of the State. But the problem persists what that, if we use the viewStack State to launch an event only when the State/viewStack is displayed on the screen.

    I found something that works very well for me: updateComplete.

    First of all, I found this before reading your information about viewStack so it worked very well for the method of the State. That I decided to do a test to viewStack and made the necessary changes to the code to reflect a viewStack navigation and make sure the updateComplete was not within my component (stateProduct.mxml). The system was not able to view the specification as the setSpecs() function was not instantiate when displayed. I added the updateComplete = "{setSpecs ()} ' and everything worked great!" So I conclude that no matter if you are using a viewStack State, the updateComplete event can be used to run or functions only when the component is displayed on the screen.

    Now, I have to make my transition between the State working with viewStack effect! ;-))

    Thanks to Greg for this useful tip!

  • Moto G4 - push notifications to stop functioning when the phone is idle / inactive

    Hello!

    I have a very annoying problem with my G4 bike purchased in the UK.

    Problem:

    My push notification comes to app and gmail to stop working when the phone is idle / inactive.

    When I use any application or when I put just the phone side push notifications work fine. They appear on the lock screen and beep.

    After a few minutes of not using the phone, the message to stop the spread. The sender indicates that a tick and the Moto G4 does not show notifications of type push until the phone is activated and unlocked. It is very annoying, because I already missed several attempts to call. This problem occurs with the Wifi or data plan. It is not a What'sApp of settings as it works very well for a while.

    Text messages and phone calls work well, just a data plan seems to go off when idling and never come back until unlocked (even then it takes a while). WiFi seems somehow to maintain a connection.

    I tried:

    • change What settings the sApp
    • disconnection/connection gmail account
    • remove the operating system of the device cache
    • disable the whats of ap battery saving options and all services appear to be relevant
    • WiFi seems somehow to keep the phone, but only data stops immediately, sending fn when idle
    • Restart in safe mode-> the same problem with meeting places. WiFi seems to work, data plan do not when idling

    Is this a known issue? Everyone knows the problem? To me, it seems that the camera seems to move from the internet and do not reactivate until this that unlocked.

    Any suggestion would be appreciated,

    Thank you!

    It seems to work now after clicking: 'Reset the settings App' in the top menu right in "parameters - apps-> gear-> battery optimization"!

    I haven't seen this solution anywhere else. I did the reset done only because I tried to disable optimization for almost all applications gradually. Without success, I clicked on 'Reset the settings App' and suddenly push notification for all work! Yes!

  • No warning when the volume level

    Hello

    I just bought my Xperia Z2 a week ago and I am completely satisfied with the phone. Just one thing that bothers me is that, until now, it will display the warning when rasining top music volume level using earphones, but today it suddenly stopped showing this warning. I'm still using the headphones supplied with the phone, and I have not changed any setting for her nor disabled somehow.

    Something might be wrong with my headphones? Like them being does not correctly detected or something. I don't know if it's my imagination or not, but since the warning stopped the sound quality seems to have gone down.

    In the end, I did the factory reset and that seems to have solved the problem.

  • Position/size of the buttons changes when the state changes

    I have a lot of problems with forms configured as buttons ("use like button" checkbox checked) changing position on the stage, or changing size, when their States change. In other words, the size or position of a shape is different when the condition is 'Flipping' or 'Down' as opposed to the "Normal" position Are you looking for assistance to understand and control the behavior of the button shape.

    Thank you.

    What version do you have? It was a bug in the first release of 9. The current version is 9.0.1.320.

    Take a look at: release notes for Adobe Captivate 9.0.1

  • warning when the temp tablespace is full

    Hi all

    on my DB 11.2 comes from time to time situation running the full temp tablespace. It sucks just two seconds and when the dba is not noticed, the tablespace is already almost vacuum. Is it a way somehow to create as a "reminder - notify" triggering te when the temp tablespace for us will say a lot of 70%.
    That "remember - notify" runs the sql statement look in the parameter $ v, process$ v, v$ sort_usage, v for sessions of problem $session.
    Thanks and rgds,

    Alex

    You do not use dbcontrol?
    You can easily configure dbcontrol to do this, or use the package dbms_server_alert directly.
    The starting point is as usual... reading documentation.

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • How the State 'Active' of my Photoshop Button do appear and stay after a single click?

    Happy Valentines Day.

    I made a button in photoshop with 4 layers - each of the 4 States of Muse.  When I saw my Web page, the Normal, rollover and Mouse Down States display correctly, but I guess I don't understand how to get the status "Active" appear.  I want a user to be able to click on the button in photoshop and have this layer 4 (active state) appear and stay until the user clicks on the other hand.

    What am I not understanding or missed?

    Thank you

    Hi Eric

    It appears that you want the active State for the rectangle with image fill without any url of the page.

    Active state only works when the url of the page will be active, means that the page is active. If you link rectangle to any page and then preview, active State would work when you click on it, because clicking on the object will open the specific link that is associated with rectangle, which makes it active.

    It won't work without using any link.

    I suggest you to change the picture fill of asset turnover or the mouse down, that could work without linking the object to any page.

    For example, I have linked the rectangle to the home page and now active State would result when you will be noticed. Did you send the file.

    Thank you

    Sanjit

  • 64-bit Windows 7 mouse freezes / stuttering several times per minute, when the network activity is high

    Hi all
    I recently bought a new computer Packard Bell with a Windows 7 OEM who have a problem with the mouse and keyboard. I've been in contact with the manufacturer, but they are also confused that I have on this issue. After looking in many discussions about the problems of the mouse in windows 7, I found that there are many who have this problem but there is no consistency in the HW configuration, i.e. it seems more a problem with the OS.
    I really like the machine and Windows 7, but I have a nagging issue with frequent 1-2 second freeze/stuttering of the mouse during the 'high' network activity (e.g. streaming a YouTube video). During my research, I met at least 4 people who who call network activity affect the behavior of the mouse.
    Sometimes the keyboard or the mouse becomes completely insensitive and the system must be restarted. However, on these occasions, the rest of the system is not affected - for example Skype and other programs to continue to operate without glitch or lag.
    To try to solve this problem, I did the following (with no effect on the problem):
    -Updated all the drivers to the latest.
    -J' tried different version of the mouse drivers (most recent running now).
    -Tried different versions of the network driver (latest running now).
    -Change keyboard and mouse to the PS2 came with the computer.
    -Set the system to 'high performance '.
    -Changed for USB mouse
    -J' tried various Bios settings 'mode of power/suspend' (proposed in solution in another thread)
    One thing that has had a strange effect on the problem was:
    -Seen the PS2 and USB mouse is touching one when the other freezes / stuttering will immediately resolve stuttering gel.
    I have studied/noted:
    -There has never been a 'error box"popping up in Windows when this happens.
    -In the event viewer I see warnings from "i8042prt" regarding (remember, thie is translated from Swedish :) 'The device sent an incorrect response, once the keyboard has been reset' (this is what I found, if you need more information please ask but provide what to look for and where)
    My system has the following specifications:
    Operating system: Microsoft Windows 7 Home Premium
    Versions: 6.1.7600 build 7600
    Manufacturer: Packard Bell
    Computer model: ipower G3720
    Computer type: PC x 64
    Processor: Intel Core i7 CPU 860 to 2.80 GHz, Mhz, 4 core, 8 logical processors 2801
    Date and - version of BIOS American Megatrends Inc. P01 - B1-2010-03-23
    Version SMBIOS 2.6
    HAL (Hardware Abstraction Layer) Version = "6.1.7600.16385".
    GB of physical memory (RAM) 6.00
    In addition to the original equipment, I also installed a network card PCIe wireless D - Link DWA - 556 Xtreme N PCIe Desktop Adapter (using the latest drivers for windows 7 d-link)
    FYI: this is a descent by request of support for MS, disorder report posted here first: http://social.answers.microsoft.com/Forums/en-US/w7performance/thread/01655e0a-1489-44e0-ad75-e9ee5486d91e?prof=required
    Thanks for any help on this
    / Rasgra

    Hi Chris,

    I might have a happy ending to this topic :)
    I returned my old piece of system got another, it worked fine at first, but then the mouse began to stutter once again.

    The system had only a few programs installed so I started to uninstall it to see if it changed anything.
    A program - Skype.

    I never suspected that my friends use Windows 7 and Skype without any problem, although they could not use quadcore and 64-bit version.

    My system is without stutters and glitches for a week, so I'm pretty sure that was the problem.
    That Skype is a very wide spread of IM, it could apply to other institutions.

    Thanks for your help!
    / Rasgra

  • display a warning when the exit button is clicked

    Hello
    Nobody knows how to set up a warning message when someone tries to get away a page (that is to say, press the home button). I'm doing an internal student site and the customer wants a message to say that this student needs to save your work before leaving... Is there a way to do this?
    Thank you
    NIC

    Friday, October 10, 2008 10:26:43-0400, "Murray * ACE."
    wrote:

    >

    Gary

  • How to get a warning when the email arrives

    on the macintosh, there is a small number on the icon when a mail arrives but on the iPaad: nothing. We must open the e-mail account to see if the emails are to him

    Is there a setting to change this?

    Thanks in advance

    Michel

    You have settings > Mail, Contacts, calendars > new data value push and/or extract emails to the iPad, and you do not cut off notification sounds and settings > sounds > new mail set to beep?

  • Search for content when the State is not released

    I would like to know how to search for content items that do not have a value of dStatus of appeared.

    Our use case, is that we have a few users who generate most of our content. At the present time they put the release Date to a value in the distant future, if the documents are not being released. However, when they want to edit or review the documents, they must go to work in progress screen that exposes none of the search functionalities of the AAU. We are looking at workflow, but that does not necessarily easier to find the documents they need, because so many documents will be in the workflow at any given time. Any ideas on how I can help my user documents that have not been released? Thank you.

    I had a similar request. The solution is the following:

    Use the GET_DATARESULTSET Service that executes a query that retrieves data revisions, Documents, and the DocMeta table.
    Build a custom service similar to GET_DATARESULTSET, which can be run by any user (currently this service has access admin only)
    Build a page similar to serach screen, in which the user selects the search criteria.
    Note that the parameter to this service is a database where clause (dDocType = 'XXX') against a content server search query (dDocType "XXX").
    The content button Search/retireve should run the service to return a result set.
    Build a similar model or use the form of search results to display the results.

    I used the service to retrieve results (released and unreleased) but executed with api cis. Therefore, I did not the serach, component of a page of search results page.

    Good luck with your stuff.

    Thank you
    Aparna

  • When the session has become inactive

    After how long active sessions will become an inactive.

    Concerning
    Iman

    After how long active sessions will become an inactive.

    Immediately.

    A session is ACTIVE when it running SQL. See V$ SESSION. When execution ends the status becomes INACTIVE.

  • No advance WARNING when a limited time the user is disconnected

    I put in place until the account of my children (Vista SP3). There is however, no prior warning, when the spam of time has elapsed. The screen is just blank out of the blue!
    Is there a setting that I have the system to display a warning advance e.g. 5 minutes before reaching the time limit?

    Google comes up with no solution; Only third-party applications are given to access this feature.

    Solved on Windows 7.

  • When an application is in the background, it can do something? :

    When an application is in the background, he can listen to specific events (i.e. backlightStateChange), but is there a way so that it can proceed with treatment of low priority, or something of the poll?

    For example, if I want to make an app that keeps the backlight on, I can't use backlightStateChange in SystemListener, because it is only triggered after the backlight is turned off - that is to say after this gradual long melted in a recent operating system.  If I wanted to keep on, either, I have to keep the call Backlight.enable (true) - I couldn't not do when the application is in the background - or else I have to predict when it will stop and schedule a timer or invokeLater for just before the time-out period and reset the timer of the backlight.

    What I found is that when an application is in the background, its clocks are frozen - it cannot enforce a TimerTask or a passable invokeLater, at least that's how it seems from what I have to try.  I could do a scheduleApplication, but that only has calendar wave (resolution of 1 minute more or less), so it wouldn't be useful to have an app question something in the system, every 10 seconds or that does not have a specific listener, i.e. in the example of lighting is no listener for an imminent expiration time, that actually happened.

    The BlackBerry is supposed to be multi-tasking, so how to I can not get an application to run at all in the background?  No possible demon?  What did I miss?

    Thank you

    Hello

    I did some experiments with background applications in the emulator. My findings are different from yours.  I'm including them below:

    1. when an application moves in the background, he is able to do the following:

    -Schedule timer jobs that do not access the user interface.

    -o file

    -perform any related processing no UI, including any floating point calculations.

    I have no t try invokeLater Runnable. But I think I know it shouldn't work since

    the object to be executed in case of thread, this method calls annexes.  When an application is in the background, it doesn't have access to the user interface. Thus, invokeLater.Runnable is a no-op for her.

    -MO.

Maybe you are looking for