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".

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...

  • Background blur app

    Hello

    I want to install Sony Background defocus app on Store but I can't because the Store says my device is not supported. If I download apk from ApkMirror.com, it works fine without any problems. Why the Xperia M4 is marked as not supported supported on Store? Can someone from Sony change it? Does anyone have a more recent version of apk (2.1.1)?

    Martin

    If you cannot download it on the playstore then it is not supported by your device, and you have noticed that since you side-loading of the application. This is a forum for basic users, you can contact directly with Sony

    Contact your local care Xperia

    http://www.sonymobile.com/global-en/support/contact-us/

  • iOS 10 Mail app - threads are impossible to read with style answer-everything Outlook (without quotes)

    Outlook and the Mail app both old showed you a list of e-mails in a thread; If you want to dive to an email, you must click on this email.

    The new view of thread is essentially impossible to use now, since there is no view that shows each email in a list. Instead, if reply - all on your e-mail service does not add to citing it vertically and mark a horizontal line between the contextual emails, you end up seeing the WHOLE thread in each individual e-mail. It's 100% fine if you also have a vision where you can see every email truncated in a list. But this is no longer the case.

    I'm going to have to cut the wires completely from my computer (Outlook) is impossible for me to read in the current state.

    100% behind you! Please Apple, can we have an option to make the threads as they were in the iOS 9? It was actually a useful feature. In iOS 10, it is completely impossible / a lot of your time!

    Even if the quirks have been developed and e-mails would collapse correctly it is always not very useful when you have long filaments (which, when you use mail app for email to work can happen in the course of a single day with 20-30 + emails).

  • Rose background in App Contacts Sony

    Just noticed that the contacts app default xperia bottom pink. Don't think anyone knows if there is a way to change what it is there?

    Hold that Google has released an app that I use their apps Gmail and calendar (although I do
    prefer Sony phone and messaging apps to be honest).

    Hi WillHarris23067,

    I think that this is related to the current topic selected on the device. I travelled on my own and found that the default theme has a pink contacts theme.

    I changed the theme, and then the background theme changed with her Contacts.

    Applications > settings > theme

    Let me know how you go.

  • 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 dialog App

    Hello. How to display an alert dialog box if my application is in the background? In addition, I don't want to use a dialog box unless my application is in the background.

    Thank you.

    brad51 wrote:

    my app has a timer set by the user. Surely, they want to know that the timer is complete.

    In fact, probably not with a modal dialog box.

    I suggest that you use some audio, they can disable or turn off in your application if you wish, in combination with the undocumented-and-yet-to-be-released API Notifications.  This is how people are going to wait and want your application to report, at least as much as the use of a modal dialog box.

    Do what you like, but I really believe that if you use the modal dialog box so that you will have a lot of uninstall.

  • 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.

  • Background in apps CC Board

    Is there a way to disable the background that comes up in Illustrator, InDesign, and Photoshop CC. I don't know what it's called, but it's the empty window you file will open in. When you close your file remains until you quit or minimize.

    In three programs: uncheck the window > Application Framework

  • After the upgrade to M, even after app running background always have disabled

    After the upgrade to M, end of running back app again even after you turn off

    I have disabled in the background running apps in the power manager, but still historic turning applications, thereby it consumes more RAM and battery. Please solve this problem.

    That option does not preclude the application to run in the background instead it will not allow the application of auto-start. So if you open this app it could run in the background unless you kill the application.
    Or do you mean that the app begins on its own even after killing it?

  • Windows 8 applications does not appear correctly. background becomes black and text becomes blurry and apps close automatically

    WINDOWS APPLICATIONS 8 DOES NOT PROPERLY

    • the black background become apps. for example, in app people white background become black
    • the text becomes blurry and apps works slowly
    • While only game apps work properly
    • All these take place but live tiles work properly

    After an update the drivers for my graphics card, I was disappointed to see that the problem was not resolved.

    Then, a few days later I completely uninstalled the drivers for my graphics card and reinstalled them.

    And here, my apps 'Modern' redisplay correctly.

  • Impossible to delete my own App!

    Hallo,

    I have an application with an enty replacement point. I'm not able to remove my own application. In application management, it is indicated as required Applications! What I am doing wrong?

    * link removed *.

    Thank you

    Peter

    package mypackage;
    
    import net.rim.device.api.system.Application;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.container.MainScreen;
    
    /**
     * This class extends the UiApplication class, providing a
     * graphical user interface.
     */
    public class MyApp extends UiApplication
    {
    
        public static void main(String[] args)
        {
            if (args != null && args.length > 0) {
                if (args[0].equals("start")) {
                    MyApp theApp = new MyApp();
                    theApp.enterEventDispatcher();
                }
                else  if (args[0].equals("background")){
                    Application app = new Application() {};
                    app.enterEventDispatcher();
                }
            }
    
        }
    
        public MyApp()
        {
            pushScreen(new MainScreen());
        }
    }
    
    
    
    
      
      
      
        
          
        
      
      
      
        
      
      
        
      
      
        
        
      
      
        
          
          
        
      
    
    

    You can use javaloader - f for everything you want to delete.
    You can find javaloader in the folder your plugin eclipse vmtools.

  • Lightroom for Mobile (iOS): download in the background (edit in offline mode) is not available?

    Hello

    iOS automatically to lock in iPgone every 1-5 minutes under the security. Download a collection seems to not work while this is happening, and this is why the download stops. This means that the function is unusable for any collection of more than 20 photos.  I checked the list of the background Refresh Apps and Lightroom is not in it and thus confirmed the team of support via chat. Does anyone know of a workaround in iOS?

    Thank you

    Marcos

    It's not under the general apparently (can't trust Google for the right answers?)

    A visit to the Apple Store produces these results.

    Settings > display & brightness > Auto-Lock

  • Run in the background for more than 3 minutes?

    Hello

    My application is a timer-app. It works very well for 3 minutes in the background. If I put it on five minutes, it doesn't work (in the background) for 3 minutes, then it stops. (it continues when I open the app again).

    In my view, there is a 'window' of 10 minutes before, but now it's only 3? Is it possible to use beginBackgroundTaskWithExpirationHandler or something like that to ask for more time?

    Apple allows only long substantive events for certain types of applications, for example background audio apps, as you have noticed.

    This kind of situation would be better served with a local notification.

  • 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

Maybe you are looking for

  • Re: Audio crackles on Satellite A500 (PSAR3A - 01 K 002)

    Bought a new Satellite A500 last year and have had many problems, here's a quick run down: 1 will play not with Win7 64-bit, compatible blue screens pointing to the graphics card driver. Tried every update in the Sun, nothing helps, also tried a full

  • TouchPad does not work after the downgrade from Vista

    I found this before a year ago but I can't find him. It's a program that will enable the touchpad after going from Vista to XP. Fn + F9 does not help, Ive already tried to reinstall the drives and the utility of ON / OFF.

  • H330 form factor for the PSU

    Hallo! Can someone tell me what form factor POWER H330 block uses? It seems to be pretty close to a TFX but each TFX PSU I found a screw holes in different places on my desk. Is this the case? Just the ususal request on here it seems related to an up

  • SP3 update: problems, can only start in safe mode

    Windows XP Home Edition: update to SP3, in the hope that it would, among other things, allow me to install the windows update service. Unfortunately, I can only boot in safe mode. If I try the normal startup, it goes into a boot loop. By that I mean

  • free upgrade from windows vista to windows 7

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: can someone explain to me the details of the free update of microsoft. You have problems with programs Error messages Recent changes to y