Problem about the listener, the timer and the timer task

Hi all

I create an application that is listening to the incoming call.

When incoming call arrives that a single clock time is beginning for 1 min.

If an another incoming call arrives less than 1 min this timer must be handed over to zero and count from the beginning.

but in my case it not to reset the counter, will launch the counter where it was finally.

both my variable are static

any help...

And what is the status of idel of application if the incoming call is coming.

application is paused or in working order?

I suspect that you have other problems, but before we start looking at these, please can you change your "static" variables and use RuntimeStore for these.  static variables are not singletons, except in certain specific circumstances.

http://supportforums.BlackBerry.com/T5/Java-development/create-a-singleton-using-the-RuntimeStore/TA...

Another recommendation.  Do as little processing as you can in a listener.  Swap in your own application to perform any significant processing.  Use GlobalEvents to swap in your own application.  Here's the good KB article that will help you to do so.

http://supportforums.BlackBerry.com/T5/Java-development/global-events-and-global-event-listeners/TA-...

Tags: BlackBerry Developers

Similar Questions

  • Problem about the United Nations wanted web site

    Hi, I have a problem with a website unwanted opening each time when I press on the new tab. Here is the url of the site.

    [www.delta-search.com/?affID=119776 & babsrc = NT_ss & mntrId = 9c9ea7eb00000000000000e04c09885b]

    A few days back I installed a program in the system named tv torn and there, whenever I open my browser I see this opening of the web site. I uninstalled the program, but was unable to remove this search engine.

    I tried to remove this the following search engine:
    1. remove the control panel through the uninstall a program
    2. by extension
    3. via manage the search engine.

    But the problem still exists.
    Please do help me.

    Type Subject: config in URL research browser.newtab.url and change the value to "on: newtab".

    < b > reset your search engine

    When you enter a search term in the address bar of Firefox and press ENTER, by default Firefox will make a "I'm feeling lucky" Google search and redirect you the first result that matches your search term. This behavior can be changed by a number of modules. If you want to restore the previous default behavior, please follow these steps:

    1. Entered on: config in the Firefox address bar and press ENTER.
    2. You should see a warning that changes to the configuration of Firefox can be potentially dangerous to the integrity of Firefox. Click I'll be careful, I promise you to continue.
    3. In the upper search box, type the key word as a search term. You should see a few other items, one of them is the keyword . URL. It must be bold.
    4. Right click on the key word. The URL parameter and select reset from the menu drop down.

    Now, you're done. Please report back if this solves your problem. Thanks in advance!

    You can find more information about the search functionality of location bar in the article to Search the web from the address bar .

  • Problems about the recovery partition

    I have a Samsung np520u4c-a01ub... on my SW update... I wanted to install the recovery, but it is said that "recovery partition does not exist Setup will be cancelled. How to create a recovery partition? I searched on google and all I found was that recovery partition is created on a USB Flash drive... I want to create the partition on my hard drive recovery... is it possible? If so, how can I create one? :(

    also, when I bought this laptop, I got a problem with BSOD... I used the recovery and restored my PC... but then... when I installed the recommended facilities and updated SW Update... the recovery cannot be installed as what I mentioned above... Please help... :))

    Hi Floyd,

    Recovery partitions differ according to computer models, I would like to recommend you to the computer manufacturer contact to get more information about the issue.

    http://www.Samsung.com/in/support/main/supportMain.do

    Hope this information helps.

  • Problem about the temporary Table

    Hi, I have a problem about cursor. Here is my sample code


    Thanks and respect.
    Jose

    Published by: mang jose on November 8, 2010 19:04

    Hello
    APEX at this moment can NOT handle Ref Cursor... You might want to look at using a collection...

    http://ORA-00001.blogspot.com/2010/02/ref-cursor-to-JSON.html

    Thank you

    Tony Miller
    Webster, TX

  • problem with the windows Task Manager.

    Hello.i uses windows 7 64 bit and I have a problem with my windows task manager.i am still able to use the windows task manager but when it appears, the tab all lack .it s display only a program this running.i hope you can help solve this problem.thank you.

    To regain the tabs and information, double-click on the outside edge of the window.

  • Problem setting up an encoder input and PWM output tasks on CompactDAQ

    I use a chassis with a modules 9474 cDAQ-9174 and 9411. I do not think it is important, but they are the cRIO-XXXX modules NOR old provided with a test configuration that has been distributed to early adopters. I use DAQmx tasks in an application (C libraries) to read (angular position) quadrature encoder and drive a motor directly with PWM current (pulse output). For various other needs, my tasks Setup is as follows:

    [DAQmx] MajorVersion = 9

    MinorVersion = 2

    [DAQmxChannel venture 9411 wheel entry/AngularPosition]

    CI. AngEncoder.PulsesPerRev = 500

    CI. AngEncoder.InitialAngle = 0

    CI. Encoder.ZIndexVal = 0

    CI. Encoder.ZIndexPhase = a Low high B

    CI. Encoder.ZIndexEnable = 0

    ChanType = input meter

    CI. MeasType = Position: angular encoder

    CI. AngEncoder.Units = ticks

    PhysicalChanName = cDAQ1Mod2/ctr2

    CI. Encoder.DecodingType = X 4

    [DAQmxChannel venture 9474 PWM output/PulseOutput]

    CO. LTD.. Pulse.IdleState = low

    ChanType = output meter

    CO. LTD.. OutputType = Pulse:

    CO. LTD.. Pulse.HighTime = 5.0000000000000004E - 006

    CO. LTD.. Pulse.LowTime = 5.0000000000000002E - 005

    CO. LTD.. Pulse.Time.InitialDelay = 0

    CO. LTD.. Pulse.Time.Units = seconds

    PhysicalChanName = cDAQ1Mod1/ctr3

    [DAQmxTask venture 9411 wheel entry]

    Channels = venture 9411 wheel input/AngularPosition

    SampQuant.SampMode = continuous samples

    SampClk.ActiveEdge = Rising

    SampQuant.SampPerChan = 100000

    SampClk.Rate = 100000

    SampTimingType = sample clock

    SampClk.src=/cDAQ1/100kHzTimebase

    [DAQmxTask venture 9474 PWM output]

    Channels = venture 9474, output PWM/PulseOutput

    SampQuant.SampMode = continuous samples

    SampQuant.SampPerChan = 100000

    SampTimingType = implied

    RegenMode = allow regeneration

    [DAQmxCDAQChassis cDAQ1

    ] ProductType = cDAQ-9174

    DevSerialNum = 0x18B3EC0

    [DAQmxCDAQModule cDAQ1Mod1]

    ProductType = NOR 9474

    DevSerialNum = 0xDEDF40

    CompactDAQ.ChassisDevName = cDAQ1

    CompactDAQ.SlotNum = 1

    [DAQmxCDAQModule cDAQ1Mod2]

    ProductType = NOR 9411

    DevSerialNum = 0xDEDB24

    CompactDAQ.ChassisDevName = cDAQ1

    CompactDAQ.SlotNum = 2

    Each task works fine on its own (i.e. without the other). The problem is that if I start the task of the encoder first and then the task PWM, the latter causes an error:

    Error-89137 occurred to the DAQ Assistant
    Possible reasons:
    Specified route can not be satisfied, because it requires resources that are currently in use by another route.

    Source device: cDAQ1
    Point source:
    80MHzTimebase
    Destination device: cDAQ1
    Destination
    Terminal:
    Ctr3Source

    Need for resources in use by Source
    Feature:
    cDAQ1
    Terminal of source: 100kHzTimebase
    Destination
    Feature:
    cDAQ1
    Destination terminal: Ctr2SampleClock

    The task name: _unnamedTask<61>

    I don't know why this is, but if I start the PWM task first, and then the task of the encoder, it also works. I should also mention that initially I was using counter 0 encoder, which caused a shift in the 100kHzTimebase to Ctr0SampleClock, which, according to the ways of device 9411, is not supported. Yet it worked (in itself). I wonder if this is happening under the hood isn't quite what is shown.

    What is exactly the conflict and what can do to avoid it? The reasons for having to use specific modes and the settings (for example, the 'continuous samples' with 100kHzTimebase clock) are rooted in various performance and requirements of optimization that were created in a previous version of our software, so I prefer not to take a completely different path, if some small changes would lead us to correct the problem.

    I appreciate your help.

    Kamen

    Hi Kamen,

    The time base of 100 kHz is not a direct route to the counter sample clocks, the device actually uses one of the other counters to complete the road (the routing table is a little misleading here because it shows 2 meter that one always doing road - in fact it will be any available counter):

    So in your case, when you start the task of the encoder, it uses one of the other available counters to complete the configured road (100 kHz to ctr2 sample clock timebase).  Of course, she chose meter 3.

    Possible workarounds (looks like you have already found one yourself):

    1 start the PWM before the task of the encoder task - if the task PWM starts first the counter is already booked and the task of the encoder would choose another available counter to complete its road.

    2. explicitly reserve the PWM task before you begin the task of the encoder (if you need to start the task of the encoder first).

    3. use cDAQ1/_freqout to generate the clock sample 100 kHz signal and use this instead of routing to the time base of 100 kHz to the counter sample clock.

    Change autour counters should also work, but I'm not 100% sure how the unit selects which counter to use for routing (I don't expect change in the future, but if it's not explicitly spec'ed somewhere so I wouldn't take my chances)-if it were me, I would choose one of the other options above.

    Best regards

  • Problem about the iPhone 6 s MORE and Ford SYNC (Ford Ecosport) bluetooth pairing.

    Hello Apple community!

    I have an iPhone MORE 6s firmware iOS 9.2.1 running and a Ford Ecosport trend M/T (bought last March 2015).

    I always pair my iPhone with audio system in my car (Ford SYNC) every time I jump in my car every day. I drive 4 hours per day and I'm fond of listening to music with my iPhone through the car radio in my car. But while playing music a few days ago my iPhone just disconnected my car bluetooth device. I tried to pair it several times, but it keeps disconnecting. I switched to the USB mode (I always connect my iPhone to my car for the end of charge and also to listen to music when I want to disable my iPhone bluetooth), my iPhone is connected, but all I hear is static, whenever I play music from my iPhone.

    I tried to delete my audio system phone master reset Ford SYNC and bluetooth devices list and also reset my iPhone, but it still shows the same results. I would appreciate anyone's response on what I live now.

    Thank you so much in advance!

    PS: I already upgraded my iPhone iOS firmware to 9.2.1 before that happened.

    Kind regards

    Marc

    Hello, m.asebo.

    It seems that you are having problems with your iPhone 6s more lose connection to the audio system of your car there. You did some great troubleshooting so far. Great job. The following Knowledge Base article offers up a few big steps to troubleshoot your iPhone:

    Get help to connect a secondary Bluetooth device with your iPhone, iPad or iPod touch

    First try these steps

    1. Make sure that your device iOS and Bluetooth Accessory are close together.
    2. Make sure your Bluetooth accessory is on and fully charged or connected to power. If it uses batteries, test them to see if they need to be replaced.
    3. Restart your Bluetooth accessory.
    4. Make sure you have the latest version of iOS on your iPhone, iPad or iPod touch.
    5. On your iOS device, go to settings > Bluetooth and make sure Bluetooth is on. If you cannot turn on Bluetooth or you see a spinning gear, restart your iPad, iPhone or iPod touch.
    6. Pairing the Bluetooth accessory, replace the accessory in detection mode, then pair and connectagain.

    If you still cannot match or connect your Bluetooth accessory

    Check with the manufacturer of Bluetooth to make sure that your accessory works with your iOS device. Contact the Apple Support if you have any of these problems:

    • You can't turn on Bluetooth or the setting is gray.
    • You cannot connect any Bluetooth accessories with your device.
    • The accessory manufacturer has confirmed that your accessory works properly.

    Thank you for reaching out to the communities of Apple Support.

    Kind regards.

  • HP pavilion slimline 400: a problem about the upgrade card chart, power, and a new case

    I have a hp pavilion slimline 400 and I want to upgrade the graphics card of it. However, the food is not enough for my new graphics card. The image is too large for this case. SO I decide to buy a new case and PS! Move all the thing inside the hp pavilion slimline 400 to a new case. But I heard someone say that this kind of PC can match the case that we can buy in the store and the cable of the PIN from those of food on the market do not correspond with the motherboard. CAN I really do that?

    You will still need a case that supports the Μatx layout.  I/O back plate must be modded or replaced to adapt.  Most cases have both Μatx and ATX layout (dead end of pines).  For some time that this question of stitching was done.  These help?

  • What is the problem about the image and the keyboard

    After I typed in the textfield, button image changed size...

    Please tell me what I have to do, I just want to keep it straight and no resizing.

    .

    Yes, if I use another component, such as a button, it works fine.the keyboard will cover the component.

    Finally as I try to set the maximum and minimum of the container size, it also works very well.

  • problem about the bootcamp assistant

    guys good day. I'm new to the community and I want to ask about my iMac bootcamp Assistant mid-2009. I want to install windows 7 on my mac but there is a problem in my training camp. The list in the menu option have only 2 checkbox. can you help me how to solve my problem.

    I improve my software in the last update but the bootcamp, still no change.  The 2nd box say install or remove windows cannot check.

    brysky08

    You should give this Apple Support article a read-through, install Windows using Boot Camp - Apple Support

  • Problems about the API implementation host of 'assets' to 'maintenance '.

    Hi all

    A requirenment I need to meet is to change the host in a datacenter of 'smart host' for 'maintenance host.

    Is there an api call to achieve this goal, or other approaches? Thank you.

    Ronnie

    We use VCO to do that and use wrapper methods.

    vcHost.enterMaintenanceMode_Task

    is the name of the called method (this is the version that returns as a task) - I don't know if this is useful or not.

  • Good site to learn more about the 'new' Task Manager.

    Just bought back nine Windows XP Media Center Edition, Version 2002 with Service Pack 3.

    Used XP Pro for years and understood all of the items listed in the Task Manager.  This list of 'new' Task Manager has all sorts of items listed which I don't recognize.

    Tried their research online, without success.  Can you recommend a site for me?  I would rather the research for my part you have to do for me.

    Thanks, Abeesgram

    original title: Windows XP Media Center

    Hello

    Try these sites

    LIUtilities.org

    http://www.LIUtilities.com/products/wintaskspro/ProcessLibrary/

    TaskList.org

    http://www.Tasklist.org/

  • Query about the ADF task flows call using URL

    ADF Version: 12.1.3 and 11.1.7

    We have a scenario where we want to implement a Home Application and product Application deployed as separate web applications.

    Now the House must have the ability to call the Application of product using call URL delimited task flow.

    My query is whether the return of a stubborn workflow will work in this scenario, because it works with the delimited call task normal flow.

    What are the other alternatives if it won't?

    Also anyone provides me with examples of applications for the above scenario.

    Kind regards

    Nikhil

    Here's a nice article on this topic

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/43-remote-task-flow-169185.PDF

  • How to change data objects and update the corresponding task and task forms?

    Hi all

    I modified this thread because I found that I had many questions to ask.

    1.
    I'm quite new to OBPM and would like to know how to change data - for clarity objects add a new attribute "Dependents of the Client" "Customer care" - and therefore update the task that uses the 'customer information' what makes via data binding - I get an error message here - or via the data about the data Task-The chosen tab it does not appear to be linked to my approach in some sort.

    2.
    Will be the task form that I generated earlier in < 1 > update automatically? Is it possible to update manually if the task has been clearly customized?

    3.
    What are the objects of project data? They do not store values in my process. They are for the arguments only - like reusable process?

    Thanks in advance,

    Kind regards

    Yanis

    Hi Yanius,

    (1) assume that you start from scratch. First, you declare your data object structure. To do this, you must go to the BPM project Naviagtor, right-click on 'Catalogue of trades' and create a new Module. Then you can right click on the module you created and select the new object of trade. Add all the attributes you need. It is the same to declare a class in Java. Second, you must declare a variable of the type process you have created: select the process, go to the Structure display (if you don't go and activate it in menu view Jdev-> Structure). Right click on the Process data object and create your variable. It's like setting a variable in Java. In short, answering your question, make the path opposite: find in your process of type "Customer Details", then go to your catalog Business, right click and change the definition to add what you need.

    (2) the human task will not update automatically (annoying). If you change the object itself, so you don't need to change your mappings because actually there the same object you are through the task as in / out argument. There are two things here: the human task and form associated with it (where probably change you the subject i.e. customer details). Go to the form (.jspx) - click on the tab links (by default, you are in the Design). In the links page, there is a link on top: "Page Définition File" (something like proj/pageDef/...xml). Open the XML file and go to the source. There you can add manually now all the attributes you need and that were not available before (i.e. dependent Client). It's a little complicated, but at least you don't have to recreate it. particularly useful if you have already implemented and subsequently form, you need to add more things (business is very good to say otherwise, "I would like to see something else in the form" ;)

    (3) project data objects are visible by all processes that you have in the project rather than the object of process data that are visible only to the method where you set the variable to. This means that you declare an object of data of the project once and then it will be available to all processes. Keep in mind that each process has a copy of it. In other words, it is not like a global variable that everyone sees. If edit you in a single process, other processes will not see the new value.

    I hope that I have answered your questions.
    See you soon,.
    Felipe

  • The error task of Planner 0x8007052E in Vista Home Premium

    I'm trying to use the Task Scheduler to run a program at startup of the system using an account 'service '.  I have configure the task, providing the correct user account and password to use, and then restart the computer.  I then check the Task Scheduler and see that the task cannot start with the following reason:

    Task Scheduler could not start the task of '\TestFolder\Test' for the user 'Computer\ServiceAccount '. Additional data: error value: 2147943726.

    The user and the password are properly defined.  The computer just do not use them properly when the task starts.  I have all the updates installed, including Vista SP2.  I searched the Internet and found many complaints about the same issue, but no resolution.  Is there a solution to this problem?

    Thank you

    Hello

    When you initially define a scheduled task, it will run without problem, if the scheduled task user is logged in or not. But after restart or restart Windows the task will only run if the user of the scheduled task is currently connected to Windows.

    For more information, see this link: http://support.microsoft.com/kb/931711

    The only way to ensure your task is running is to always log on to Windows by using the scheduled task user and use the option "Change user" rather than "disconnect" If you have multiple users on your PC.

    You can configure Vista to automatically connect a user to Windows startup. For configuration Vista automatically log a user, try the following steps.
    1. click on start then type netplwiz in the search box and press ENTER.
    2. the 'User accounts' dialog box is displayed.
    3. Select the user running your scheduled tasks, and then deselect the option "users must enter a user name and password... ' and click on 'OK '.
    4. you will be asked to enter the password for the selected user:
    Enter the password and click on 'OK '. Now Vista will automatically connect the user selected at startup of Windows.
    5. If you want to prevent this user from disconnecting and that can cause the same error, you must take the "lock" rather than the option "Log Off." Similarly, if you want to log on under a different name, then take the option "change user".

    NOTE: This is normal and does not affect Vista Business or Ultimate.

    I hope this helps.

    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

Maybe you are looking for