Background in blackberry thread

Hi all

I need to make a connection to the server (using HTTP Post) for every 10 minutes. This connection should arrive at bottom and user doesn't know that. How to get there? Please suggest a solution.

Welcome to the forums.

What part of the application you are having problems with?

I presume that the part of the background, so this should help:

http://supportforums.BlackBerry.com/T5/Java-development/create-a-background-application/Ta-p/445226

Use the button Search (near top right) you will find other useful discussions and KB articles.  So if it's not the part that you have problems with, then please search the forum for related questions that have been asked.

Good luck.

Tags: BlackBerry Developers

Similar Questions

  • Running the background (sms listening thread) connected to the GUI (another point of entry) application thread

    Hi, I'm new to the development of Blackberry, I read everything on the application running at startup and have a different point of entry for this application. I still need help with my application

    I use BB JDE 4.7

    Simulator: BB 9530 4.7.0

    I'm developing an application of SMS. (extends UiApplication)

    1) there is a thread that listens for incoming messages

    2) there is a wire which is a SMS sender

    3) there is a main screen and two full screens. for example, when the user clicks a button in one of the screens full... I send you a message

    (4) when a message is received, based on the content of the message I push either a full screen

    (5) I have, all the wires and screens as the class internal to the main class that extends from the UiApplication.

    I got the basic features. I need help making that demand the application of autostartup

    (1) I need to start listening to the sms thread when the BB phone starts

    (2) I need to have the application icon in the applications screen as another entry point for the application (only for the GUI), and the listening thread must remain active in the background.

    (3) when an incoming message is detected, the application GUI should be brought to the foreground (if it isn't already forground) after posting a popup (instead of bring the application to the foreground, is it better to display a flashing icon in the status bar of the home screen blackberry and perhaps global popup)

    (4) when the GUI of the application part is closed, I need to stop the sms sending thread, and when the system shuts down, I need to stop the listening thread.

    Please help me guys... I have read many articles and discussions regarding the automatic start-up of applications, another point of entry, the # of background threads...

    but I couldn't find how to implement my needs.

    (1) should I need to create two different projects (applications [GUI thread, a sender] and one for the listening thread)? or I can achieve in single application?

    (2) should I have to sign in the background thread to the GUI app? If so, how?

    (3) it is necessary to use the RunTimeStore object? If so, I don't know how I can bring to the foreground the application GUI of the background thread.

    (4) if I have to stop the thread of listening by overiding onExit() method, the important question I have is, if the onExit() method is only for applications that extends from the Application class and not for the UiApplication class?

    (5) if I should have two projects (one main and the other as a spare point entry), which project should I do as "autorun at startup" and a "system module".

    As I need to have the background still running thread when the GUI application is active. I don't know how I do.

    Hello world...

    I reached my needs thanks to a single application. I used an other entry point.

    To refer to chk my other post

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-avoid-creating-two-instances-of-the-a...

  • BlackBerry Thread bottom

    I work with BlackBerry Webworks 2.0 and develop an app for BB 10 devices. I want to know if it is a way to start a background thread or a background service that will take the role of application startup to preconfigured time. I did it in Android, but I don't know if it's doable on BB10 with webworks 2.0 or not.

    help Ppease?

    I found a sloution based Applications without a head. So we have to do this, just create a project combining the user interface part and headless.

    Headless is a module separated in a BlackBerry 10 app. So, you could develop the book headless separately in native language and later integrated with the WebWorks app by adding it to the package.

    In addition, background served are now possible with 10.2.1, but the amount of triggers is still limited. One of the valid triggers is pushed. Here is an example of headless applications:

    http://devBlog.BlackBerry.com/2013/11/headless-apps-101/

  • Background + UI App thread

    I intend on creating an application with the following general behavior:

    • A background thread that begins with the device and is "still ongoing".
    • A user interface for changing some fundamental parameters related to the way in which the thread behaves.
    • When the user interface is closed the thread remains running.
    • A single download / installation.

    I found the following link:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=18072&query.ID=33...

    It is very similar to what I want to do, what is not clear to me is weather or not to treat this as two applications allow me to have a single download and installation.  Also, in general is the best practice for this type of application?  Is there an alternative?

    Thanks again.

    In files .alx file, you can entry for multiple cod files in the tag. In the .jad file you create writing for cod from these two files.

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted solution".

  • Background of blackBerry Smartphones in the process leading to the BlackBerry?

    Hi, I have a schenerio for an application, that is like this->

    Application1 who need a feature to send itself in the background (background and waiting for any event to occur), and after that I should be able to run any other application (for example - as playing songs audio etc..) Once the generated event (ex - msg) then he should ask to accept or reject on the current screen.

    If msg has been accepted, then it must call Application1 in the foreground, who was running in the background.

    What api should I use for the implementation? I don't get how to start.

    Please help someone,

    I use the plug-in to eclipse BlackBerry4.5 JDE (BlackBerry 8300 Simulator).

    Thanks in advance!

    Radhika

    Cool!
    Please solve the thread so that others can find your answer faster.
    Thank you

    Bifocals

  • Adding several fields of a background without lag thread

    Basically I have a thread that reminds an interface method that traverses a vector of objects, and then creates a custom manager and adds that the Manager on the screen. I have about 10 custom handlers that I add to the screen and there is always a lag of about 20-30 seconds. I was wondering if someone could point me in the right direction to reduce the lag.

    I also like how the app Facebook and Twitter app seem to delay the display until the user scroll in the display. Does anyone have a sample of this?

    Ahh I found a solution using addAll (field []) but it only works on OS5.0 and greater.

    (net http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/UI/Manager.html#addall. RIM...

  • Background and blackBerry Smartphones Facebook notifications

    Hello again everyone, well I messed with my phone and now something is going. I use the facebook app and when I get the notification it comes in the form of the f at the top, but also in the messages. It makes me crazy to think that I got a facebook and a different text. It's not until I go to two places that I learned that they are one and the same. Does anyone know how to fix this?

    Also, I just discovered the sample photos, not not seen them so far, they are pretty cool. Anyone know if you can change the background behind icons, as in landscape mode without having to get a theme? I'm not crazy to make a theme, but I'm tempted to the dark and I would like to see something different besides the phone in portrait to see the photo.

    Thanks you guys are great!

    Kimberly

    I want to just make sure that if I uncheck the message option in the options for facebook, I will always receive notifications, right?

    Also, could someone recommend some themes treated? I know there are a lot out there and I have no idea what I would. I'm just really tired of the black and I use the phone in landscape for most.

  • Image background 'Storm' blackBerry Smartphones Original; He's already on the phone

    Just noticed today while my phone was querky move from portrait to landscape and everything by plugging in my USB key, the original image of the "Storm" appeared briefly.

    Anyway, just thought I'd post.

    I HAVE FOUUUUUNNNNNNDDDD IIITTTTTT

    http://forums.CrackBerry.com/attachments/F86/6703d1228108661-original-storm-lightning-home-screen-or...

  • Multiple applications can run in Blackberry?

    Hello

    I would like to know if its possible to run more than 1 Blackberry application. If both applications must be run in the background so it will be possible to do?

    We hope to get a quick answer.

    Thank you & best regards

    Sunil

    Yes, its possible to run several background app BlackBerry Handhels break-in.

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted Solution".

  • BlackBerry OS Q10 restoration fails wireless link and more

    I support the mobility for my business.  I got a BlackBerry Q10 what a user has failed to activate. When I tried to connect to the link to restore the operating system, I received a message stating that Setup was not completed on the device, unplug and full to the top.

    I have disconnected, went up to the game and received only a ghost '10' background screen BlackBerry, similar to what you get when you first restart the device.

    I tried to go into the settings to wipe the device, as soon as I select the settings, I went back to the home screen.  Even if I try to drag down and select settings.

    I tried to make the method described at BlackBerry.com/support, using Internet Explorer and receive the same "set up is not over."  Disconnect the device... "message.

    How to get to this device resets, restored, wiped, no so I can get the user put in place?

    Hello

    From what you describe, the operating system on this device is badly damaged and normal means will not work for her. I recommend that you use an autoloader to reload the OS for the device itself:

    Good luck!

  • How can I make my background image look like these?

    Hello, I'm using CS5 and I was hoping someone could help me make my photo horizons resemble pictures below. Any help would be greatly appreciated.

    tumblr_lq5jsnrY261qzqmo7o1_500.jpg

    You can:

    (1) shoot the subject on a colorful background prepared in advance, using a lens to give just the right depth of field to render sharp and the background blur.  A search of photos for the "photographic background" on Google turns up examples.

    (2) hide the background, that the subject is standing face-to-face, digitally put him in front of a digital background.  This thread might be instructive for you: http://forums.adobe.com/thread/899170?tstart=0

    My favorite video is piece of masking of the basics of Russell Brown (related to the above thread, but here is a direct link): http://tv.adobe.com/watch/the-russell-brown-show/masking-basics-in-photoshop-cs5/

    -Christmas

  • Network IO on OS5 coup

    I am having some problems with my network code IO on OS5 of BlackBerry.

    I get sporadic crashes and eventually TCP timeout exceptions during my IO operations.

    I use the 5.0 network API to establish the connection works perfectly every time.

    The problem is when you do the actual IO. I have a background worker thread serving a queue i/o requests. There is only a single background for all thread requests are serialized on this thread.

    Completion notification is made through a delegate interface that is passed when the request is pending. The completion delegate is called on the thread of substantive work, but guests are free to repost this to the event via invokeLater thread make UI updates etc.

    Notes:

    I did some file download large treatment OS 5.0, including "BOLD", 9520 and 9700 devices.  All of these simulators are desperate, they lock themselves in the same reading that you have identified.  the 9520 is the best, rarely, it crashes and is a little better with BONES later.  However, the 9700 is a nightmare.

    What I did, it is a mechanism of stall detection, code if I'm stuck in this loop, I therefore interrupt the flow, and try again.

  • How to use LabView created notifiers in Teststand?

    Hello

    I have created a big enough sequencer with LabView engine and I start by creating a bunch of reporters, clusters, and queues.

    You can see in the first screenshot. See to see how I did it:

    http://forums.NI.com/T5/LabVIEW/unmatching-notifier-vs-type-declaration/m-p/3058887

    Then I tried to re - use these components with Teststand in a separate thread in order to control the background running the thread using notifications and messages.

    But where created Refnum LabView, Teststand await strings or object references.

    See the other 5 screenshots.

    No idea how the two match without having to rewrite all to help continue of Teststand?

    David Koch


  • App fails to display on 10.0.6

    I have tested an app on dev alpha and comes to know about this problem.

    The app worked fine on 10.0.4 firmware but I did update 10.0.6 and now that it will fail.  When I say fail - it works but does not work.  Read more.

    I can pack and launch with ripple or install using graphical tool BB.  The app installs successfully by using the given debugging token and he launched yet, BUT it is empty.  On the ripple in windows, it tests fine.  Graphic help BB tool gives no error.  Remote web Inspector displays ZERO errors and displays the page loaded - can I debug the elements of the application, all the scripts, images etc...  On the screen of the phone is the dark grey background of blackberry.

    Can anyone provide some insight on how to overcome this obstacle, or what is wrong?  I use JQuery mobile and some basic html5.

    OK, found in another tip.  Seems that I have developed for successfully but after 10.0.6 playbook that no longer works without the files additional webworks.js etc...

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/WebWorks-app-no-longer-works-aft...

    Always jumping through hoops to get my app works... and ripple for bb10... and my keys that must resign themselves to bb10...

    Be warned bb10 is no longer like the playbook.

  • Button Click event

    Hello

    I added a button on the screen of my Blackberry and I have a class called WebCall who has the Socket connection

    http://www.BlackBerry.com/developers/docs/7.1.0api/javax/microedition/IO/SocketConnection.html

    I want that when I click the button, it calls the WebCall class.

    How to archive this?

    Thank you

    Hamid Weiss

    Citing a treatment on a button click has been discussed on this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/pushing-screen/TD-p/2399831

    In this case, you should be aware that the button click process runs on the event Thread.  But to make blocking as network activity operations, you must do this in your own Thread:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    http://supportforums.BlackBerry.com/T5/Java-development/blocking-operation-not-permitted-on-event-di...

    So, you need start a Thread to do the treatment on your network.  Processing on BlackBerry thread is quite similar to the standard Java Thread processing, so there is no specific documentation of BB for this, but you should a lot of samples of Java if you look around.

    According to the first link that I've referenced, I would recommend that you study the samples you will find.  They will never do exactly what you want, but while you are learning, it is better to start with a sample of work and make small changes to get to what you want, try to create everything from scratch.

    And you should make yourself familiar with this micro-site:

    http://developer.BlackBerry.com/Java/

    Good luck and have fun!

Maybe you are looking for

  • Open my Apps IPhone, but then 'close '.

    When I opened a few apps, they seem to open, but then I am struck out immediately back to the home screen.  The application, however, always seems to run in the background, but when I switch to the application, it stops again me and kicking back me t

  • Software CyberLink YouCam to a 32 bit OS HP Mini 210-4000

    Nice day! I'm looking for a Cyberlink YouCam software for my 32 Bit OS HP Mini laptop 210-4000. I tried several times to have in the internet, but all I have is for testing only. Can you provide me with recorded a? Thank you and more power! Software

  • Windows error 80070490

    I constantly get a message that Windows cannot update. I get the Error Message 80070490. I have done repairs registry and system scans, but that's not enough. I tried the suggestions of resolution on the Microsoft Web site, but still no results. The

  • Windows DVD maker. Menu settings

    fact a movie with DVD maker, is possible to set up the menu so you can click to start of the scenes? It seems he did this automatically, AND EVEN ON SOME FREE DVD manufacturers where you can set the time for each scene in menu setting, you must use w

  • Error P2314H BGR manufacturing

    I have a Dell P2314H, and mine seems to have a sup-pixel BGR order. Is this correct? Or a manufacturing error? Because I see no point to use a different subpixel instead of the standard RGB order, and this causes especially the text appear blurry in