How to perform a task in the background repeated

I need to have a background process start as soon as the blackberry is turned on and stay in the background. Here it runs several times a function, say every half hour or so. Is this possible in webworks? I am very new to this, so I'm unable to do this part of my application. Any help would be appreciated!

From your description, I guess that you are working on a smartphone application. If so, configure a listener in the background:


   

On this page listener.html you can have the function that runs on an interval:

function foo(){
//processing code here
}setInterval("foo()",1800000);

Tags: BlackBerry Developers

Similar Questions

  • How to perform simple tasks in Windows 8

    I know how the various Windows 8 is that previous versions of Windows.

    I found a few demo videos with many tips on how to use Windows 8. The videos give how to research, sharing, switching and closing applications and how to perform simple tasks in t he operating system.

    Here is a link to the videos.

    Enjoy!

    I hope the videos help out!

  • Do you know how to copy certain tasks in the calendar and the past on different days?

    Do you know how to copy certain tasks in the calendar and the past on different days?

    This year, I even tasks to every month, so it is difficult for me to create new tasks for the same information. I can't find how to copy beyond the tasks, so if someone could help me I aprecciate it.

    Thanks in advance!

    Select, press COMMAND = C to copy it to the Clipboard; Select the date that you want a copy with the mouse, them press COMMAND\-V to paste. If you want a repetitive task, you can select the item and double-click it to open it, and then the pop up config, select repeat.

  • How can I get rid of the background yellow when I display an image using the photo viewer?

    Original title: Windows Photo Viewer

    How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.

    Thank you

    Ed Fuller

    How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.

    Thank you

    Ed Fuller

    Hi Ed

    See the following for the patch thread.

    Windows 7 photo viewer shows images with an orange and yellow tint:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/window-7-photo-viewer-shows-pictures-with-orange/e5d31c5e-ae84-4EBD-bbe9-9428f410560b

    Concerning

  • How to print a document without the background of color?

    I use HP Deskjet 2050. Just wonder how to print a document without the background of color? Thks

    You want to print the entire page in only black and white, or are you wanting to remove a background from an image and print it?

  • How to stop a task in the message Manager model pending

    I use the base Manager messages queued to separate my event handler and tasks.  An event on the front (button) Panel puts a message in the queue.  When the queue handles this message, it performs a task.  However, I will now add a button to the Panel before which put an immediate end to this task at any point of the task.

    For example: pressing start on the front panel causes the message handling loop count of 10000.  Pressing stop on the Board before you must cause the counting stop.

    How can I implement this?

    Thank you!

    In general, you don't want to run a task in a single frame of your MHL which will take a long time. You have two options:

    1 have the MHL himself to increment the number of messages. This way you can enqueue message 'stop' priority on the queue if you want to stop while it is happening.

    2. do you have a parallel loop that is incrementing the number and that MHL sends messages to this loop to start and stop it. Take a look at the continuous measurement and a recording project for an example of e-mail between the loops.

  • How to copy DAQmx task without the help of MAX?

    Howdy-

    I hit a bit of trouble here I think points to a fundamental misunderstanding I can have on DAQmx channels and tasks.  I can hack together a workaround, but I would like to know how to do these things, common sense.

    In a Word, I prefer to do everything in the code and not use MAX.  For my application, I would like to create a single channel/task initialized with all the scaling, the physical channel parameters and units (it is what is, in my case, a 'channel').  I would then like to create copies of this channel/task and configure each with parameters of specific task of sampling... corresponding to what I would call the "tasks" to use "Channel".

    I'll have no chance, so of course, I do not understand what I do.  Any reading/posts I've met use MAX.  Here's what I've tried so far:

    Even when you try to use MAX, I am the breath.  Any help straightening on my confusion here is very appreciated.

    Thanks in advance and have a nice day.

    -Brad

    In fact, you're not confused.  In this instance of National Instruments is perhaps...

    See the links ofthese ideas in the link.

    But a 'task' is really just a section in an XML file.  If this file is named *.lvproj the project has access to tasks.  If this file is *.nce any labview application has access to tasks.  If this file is created by the RTE that vi has access to the task.  In short, the "tasks" are never really defined by 'Code' but by the XML code to the file than declairs them and teir properties.  Tasks need to be defined a time-preference during design - project

    Yes, it's a bit simplistic but a good analogy!

    Go ahead and kiss MAX to set your tasks... use DAQmx property nodes if you need to programmatically determine a task property.   "do everything in code" as you say is just not really the way it is... the way I think you hear it...  'S really not 'made it in the code"but rather how LabVIEW is inherintly multithreaded.  The IDE just handles it for you "So easy that could encode a cave man!  Relax and let it work the way it does work for you.

  • How to REMOVE a photo in the background picture in the list of background photo in the display on my computer properties?

    I have a picture in my LIST of BACKGROUND PICTURES under the PROPERTIES of my computer DISPLAY area and the photo is named WINDOWS LIVE PHOTO GALLERY.  I WOULD LIKE TO BE PERMANENTLY DELETED.  HOW CAN I DO THIS?  I use Windows XP.

    Hello

    You can try these:

    a. go to the start menu and select desktop or double-click top from the desktop.

    b. go to the Tools menu, select options and then select option files and hidden folders.

    c. navigate to the folder... \Windows\. If you are presented with a warning about the change of system files, click on the link "View files" to continue.

    d. look in this folder for the background name you want to delete. If this is not the case, try looking in these places:

    i. Windows\Web\Wallpaper directory

    II. the "My pictures" folder This inside "My Documents".

    III. If you are using Internet explorer, it can be stored in C:\Documents and Settings\\Application Data\Microsoft\Internet explore

    e. If you still haven't found it, go into the Start Menu search. Click "all files and folders" and enter the name of the background to locate.

    f. When you have located the file, you can either delete or move to a new folder. Try to create a folder named Backgrounds moved. If you move the file into the new folder, it will be removed from your list, but still available on your PC if you change your mind.

  • When using paint how to edit text without losing the background image

    I'm trying to edit text on a picture and it has a background, I don't want to lose the bottom.  How can I do this using paint?

    If image launched initially with a word in the background, you can't change it with paint. You can write a note on top of it so you cover, but you can consider using Adobe Photoshop.

  • How to perform a task planned without connection?

    I would like to know how to run a task planned without connection.

    Does anyone have any suggestions?
    Thanks in advance for your suggestions

    "Run if the user is logged in or not" only works for tasks that have no user interface.  The notebook has a user interface, so it can not start this way.

    The password would need to be saved for any ' run task if the user is logged in or not ', because there is no other way to confirm the identity of the user on the approval of the task.

  • How to detect incoming calls in the background?

    Hello

    our application works in the background (and playes audio). We are looking for a way to detect incoming calls (and to stop playing).

    It comes to CLDC app, not a moped.

    Is it possible in background mode and how? In which case I can listen?

    If not, is it possible in the leading fashion and how?

    I guess we can add a net.rim.blackberry.api.phone.PhoneListener and use the callIncoming method
    in the main application, but it works in background mode?

    If anyone can confirm, I would appreciate... Thank you...

    @ BBDev, but when a call is incoming, and then sound stops automatically right? And we don't have to capture the event however!

    Thank you!

  • How to insulate an image from the background?

    I have a simple chart, I need to isolate (chassis?), because the background is displayed in the design. How can I do this? Thank you!

    When you place the PDF check box click to display import options (or hold down the SHIFT key when you press OK). Select transparent background.

  • How to stop a video in the background?

    I use videos in a post of DPS for iPad, but when I turn off the page when the video is, it continues to play in the background. This is not something I want. How can I stop that from occurring so that the video stops or stops when I flip the pages?

    Some have mentioned in other blogs a little tool that stops the video when you go to other pages, but this isn't on Android as mentioned here

  • How to allow visitors to change the background image of my site?

    Hello.

    I wanted that my visitors to be able to change the background image to another image. Already, I know how to do it with the colors but doesn't seem to work wih images. You are able to do this on Google, but can not seem to find it anywhere online. I just want it to change while the visitor is on the site. for example

    1 visitor - context changes to-myarea.jpg

    2 visitor - context changes to-my cat.jpg

    and so on...

    This would not change the site forever, just at the point where the visitor is about it.

    Concerning

    Leon

    Here are a few ways to do this:

    Option #1:

    You'll need a JavaScript script and an array on the page background images.

    An example of work below.  View source in the browser to see the code.

    http://ALT-Web.com/BG-img.html

    Option #2:

    Create more than one style sheet with different colors and background - images of the body.

    Create a selector of stylesheet like this with jQuery

    http://www.kelvinluck.com/assets/jQuery/styleswitch/toggle.html

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

  • How can I get rid of the background color in shortdesc

    Whenever I have delete the background color of the short.description paragraph tag, it comes at the time when I reopen FrameMaker. I don't want the background colors in my short descriptions.

    Hello

    As Scott pointed out, you make changes in the model if you want to remove the background color in shortdesc. If you create a topic / / concept/glossentry/reference tasks, etc., the models are found here:

    C:\Program Files\Adobe\AdobeFrameMaker10\structure\xml\DITA_1.2\app\technicalContent\template (in Windows XP)

    Note: Please take a backup of your original models, just in case where something goes wrong here.

    (1) assuming you create a theme, open topic.template.fm.

    (2) paragraph open designer. Format > paragraphs > Designer...

    (3) ' short.description' select the tag in the menu drop-down.

    (4) Goto the tab "Default font" in the paragraph Designer.

    (5) at the bottom of this dialog box, check "Background color".

    (6) click on the "Update All" button

    (7) save the document template.

    This should help you to get 'RID' of the background color in shortdesc.

    Kind regards

    Saurabh

    Team Adobe FrameMaker

Maybe you are looking for