Bring the app to the forefront of another point of entry that runs in the background

in my case, I have two entry point is main which is used ti open ui and the other who work in the background to receive the push. I'll call you

Application.getApplication () .requestForeground ();

to bring the app to the first plan but it create instance of the application and opens the app I don't want this, I want the main application to be in the foreground, any help please...

Please click on these links to open and transfer data from main application context.

1)

http://StackOverflow.com/questions/11555165/BlackBerry-alternate-entry-point-start-app-from-backgrou...

2)

http://StackOverflow.com/questions/11582112/BlackBerry-how-to-transfer-data-from-background-to-main-...

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

  • Thread in another point of entry of spawning

    I'm looking to develop an application that has a background service and a front end GUI (2 points of entry).  I understand how to have a runtime shared store so that the GUI can access data/events from the basic service.  But how do I generate a thread in the background entrypoint, while in the entrypoint GUI.  Should I call app.invokeLater () on the background application?  Is - illegal to do if you're not in the context of this application?

    Send your background request a notification using the global event.

    invokelater on the instance of the application should also work, but seems a little dirty to me

  • Another point of entry without rebooting

    I have an application with two possible main objects:

    • UiApplication, foreground process, we call it FG_UIApp
    • Application of the background process on the auto-run-start, we call it BG_App

    For debugging, I want to kill the BG_App by sending a FG_UIApp GlobalEvent. OK, it works perfectly. Now, the BG_App does not work. It doesn't work anymore, when I do a full reboot. But now I would like to be able to start the BG_App again without rebooting. I thought in a way like this:

    1. the user clicks on the application
    2. now check if BG_App is running, when it doesn't work, just start it
    3. for the user nothing happens, so he will again click on the app
    4. now, checking, if BG_App is running-> it works, so now we can start FG_UIApp

    To do this, I've implemented the following code. Step 1 + 2 work, but when I do the step 3 the debugger tells me, that my application is already running. Is it possible to simulate the autorun entry point without having to reboot?

    public static void main(String[] args) {
      boolean startbackground = false;
      if ( args.length > 0 && args[0].equals("autostart"))
        startbackground = true;
      else {
        boolean runtimestorevalues_are_existing = false;
        // checking some values in the runtime-store,
        // which are set by BG_App    // if these values, don't exist, we start
        // the background-process
        if (!runtimestorevalues_are_existing) startbackground = true;
      }
    
      if (startbackground){
        new BG_App().enterEventDispatcher();
      }
      else {
        new FG_UiApp().enterEventDispatcher();
      }
    }
    

    Best regards, Anil

    Hello Mark!

    After playing with the ApplicationDescriptor change, it works. The solution is here:

    /*my cod-module is called fooin my jde I have 2 projects - foo (the gui-application, called with no arguments) - fooautostart (the backgroundapp, called with the argument "autostart",     it is generally called, when the device is booting)*/public static void main(String[] args) {if ( args.length > 0 && args[0].equals("autostart")){  new BG_App().enterEventDispatcher();}else {  RuntimeStore rts = RuntimeStore.getRuntimeStore();  boolean runtimestorevalues_are_existing = false;  /*  now checking some values in the runtime-store,  which are set by BG_App; if these values, don't exist,  we have to invoke the background app in simulating the  startup-entrypoint;  */  if (!runtimestorevalues_are_existing){    try {      int modHandle = CodeModuleManager.getModuleHandle("foo");      ApplicationDescriptor[] apDes =        CodeModuleManager.getApplicationDescriptors(modHandle);      String[] args_for_descriptor = {"autostart"};      ApplicationDescriptor descriptor =        new ApplicationDescriptor (apDes[0], "fooautostart", args_for_descriptor);      ApplicationManager.getApplicationManager().runApplication(descriptor);
    
        }    catch (Exception e){      System.out.println("background start exception ex: " +         e.toString() + ": " + e.getMessage();    }  }  new FG_UiApp().enterEventDispatcher();}}
    

    Thanks and best regards to Canada.

    Anil

  • Added that another point of entry but now cannot request signatures

    I added a project in my workspace to be used for another entry point that will 'init' for the main project to add backup / restore features of my persistent data. However, since the addition of this project the opportunity to "Request for signatures" to sign my application is greyed out.
    I followed the instructions in the guide to the BlackBerry Developer about adding a project to a different entry point.

    Serving as alternative entry point is in the same workspace as the right of the main application? If I remove the new menu item entry alternative app to request signatures returns to normal.

    Well, I don't understand what the problem was, but I solved this by doing a new workspace and adding 2 projects. I couldn't make it work with the existing my original project workspace.

  • How to access my application UI of another point of entry?

    I have a user interface with another application entry point. In the other entry point, I put the fix times and always check this time around (using RealTimeClockListener). If the smartphone to go at this time, it will grow a screen of my application user interface. And he pushed successfully. In this screen have an ex "New button" button, usually when I run my application user interface and click it, it will push a new screen.  But in this case, when the screen is pushed to the other entry point, I can't do action on this screen, I click on "new"button and no display of thing...

    How can I solve this problem?

    You can use a shared in the store of runtime service. or after a global event.
    ApplicationManager allows to validate a global event and register a GlobalEventListener with your application class to listen to it.

  • Stop aggregation script running as a process in the background

    Is it possible to safely stop an aggregation script that runs as a background process?

    Essbase 11.1.2.3

    Thank you

    Robert.

    In windows, you will see two processes (ESSBASE, ESSSVR). Essbase is the main server process and ESSSVR is the process that is created when you do any activity. You must kill all the ESSSVR process (if you're pretty sure to kill any given the impact). Do not kill the ESSBASE process when you have ESSSVR process

    HTH

    Amarnath

    ORACLE | Essbase

  • Data created by the app on an iPad to another iPad storage

    Hello world

    I do a game for an iPad that will store a random code after completing the game, so after completing the game, I tried to keep this particular iPad device random code automatically. Because there was an event, and I need to save this random to another ipad code so that the meter can verify that this code is valid for the redemption of the prize, is it possible? He works that some similar to messaging apps where someone message to another person and that person receives this message, but I want to know how this person receive that message through his phone? Is it possible to do this through flash CC? Any help or a response is appreciated!

    Why you plan to use something other than the more good file server?

    check http://www.inmotionhosting.com

  • Why change the background image of the dashboard of data crash the app?

    I'm changing the background image of my dashboard (on a third generation iPad).  Whenever I try to make the change, the data dashobard app breaks down just.  Even if I try to change to a color, the application crashes.  I can insert a picture without problem.  I guess it's just a bug or something but has anyone else seen this problem?

    I was able to reproduce this crash with the following steps:

    -Set up a background image of a page

    -Copy the dashboard somehow. You can reproduce the dashboard, share by email, export and re - import OR clouds, etc.

    -Open the copy of dashboard

    -From the copy, change the background image (for a solid color or another image)

    If you set a background image of a page, close and reopen your dashboard and then try to change the background to something else, you will encounter this error.

    Solution: If you have the original background image in your Camera Roll, you can fall as an image on the same page (Photo Palette, select in the library). Then you can remove this image and change the background also image.

    If you do not have the original image, you may need to start with a new dashboard. (For each page on the old dashboard, you can tap the bottom, select all, copy / paste on another dashboard).

    There is a similar problem with images removed, if you shared the dashboard and you work on a copy. In this case, the solution is to copy and paste the image before deleting. (Otherwise, you'll get a dialog error instead of an accident, but the image is not clear).

    I deposited cars for these issues internally. Sorry for the inconvenience.

  • SQL to bring the last line and the just previous row in the table

    Hi all

    I have a table of orders, where a serial number can be booked with different number several times over several days.

    Requirement is to bring the last order (based on the date of creation) number associated with this serial number and just previous order number and data in the format below.

    Last order numberSerial numberReservation locationNo bookingPrevious order numberSerial numberReservation locationNo booking

    It is essentially to generate the report that a reserved serial number with how many times with different orders and report must contain details of order two in a line.

    Kind regards

    You asked for the last line, and you have not provided data of the example or the expected results, so you get what you asked for.

    You may be looking for data to be partitioned on another value, for example

    SQL > ed
    A written file afiedt.buf

    1. Select deptno, ename, empno, mgr, hiredate, prev_empno, prev_ename, prev_mgr, prev_hiredate
    2 starting at)
    3. Select deptno, ename, empno, mgr, hiredate
    lag (empno) 4, over (partition by deptno arrested by hiredate) as prev_empno
    lag (ename) 5, over (partition by deptno arrested by hiredate) as prev_ename
    lag (mgr) 6, over (partition by deptno arrested by hiredate) as prev_mgr
    lag (hiredate) 7, over (partition by deptno arrested by hiredate) as prev_hiredate
    8, case when hiredate = max (hiredate) on (deptno partition) then 1 0 otherwise fine as max_hiredate
    9 of PEM
    10       )
    11 * where max_hiredate = 1
    12.

    DEPTNO EMPNO, ENAME MGR HIREDATE PREV_EMPNO PREV_ENAME PREV_MGR PREV_HIRED
    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    10 7934 MILLER 23/01/1982 7782, 7839 KING 17/11/1981
    20 7876 ADAMS 7788 23/05/1987 7788 SCOTT 7566 04/19/1987
    30 7900 JAMES 7698 03/12/1981 7654 MARTIN 7698 28/09/1981

    who is the last disc, by Department, as well as the previous within the same Department.

  • Adobe AIR iOS app is not running in the background

    I have an iOS with Adobe AIR application. It does not in the background even if I did the following things that I can think of,

    1 NativeApplication.nativeApplication.executeInBackground = true;

    It's the first thing I did. I got another application that runs in the background without problem, and it's the only thing I know that I used there.

    2. experienced with direct < renderMode > < / renderMode >, < renderMode > gpu < / renderMode > and < renderMode > auto < / renderMode >. None worked.

    3 added,

    < key > UIBackgroundModes < / key >

    < table >

    Audio < string > < / string >

    < / array >

    Does not work either.

    Whenever I pass the app at bottom, no matter how short time, it always starts at the beginning when put in the back. The only exception is when I take a phone call, in which case it seems to continue where it left off. Is someone can you please tell me what is happening? Is there still hope for me? Thanks to a bouquet.

    BTW, the same app packaged for Android has no problem running in the background, and I didn't do anything to turn it on.

    I forgot to update here once I found the problem.

    There's a UIApplicationExitsOnSuspend key that was for some reason the true value in my application.xml file.

  • Lag when another application is running in the background

    Hello

    IM, building an application with Flash which strongly relies on the transformation of 3DMatrix

    My application runs smooth and hits a framerate of 30 frames per second, so this isn't the problem.

    The problem is that when I switch to another application, Angry Birds for example, and then switch back, my application gets horrible lag.

    The only thing that helps is to kill the other application that is running in the background.

    I use Air 2.6, but the same thing happened when I was using the REIT

    Did anyone here know how to solve this problem, or why this happens?

    Thank you!

    -Edit - it's on iPad

    Hey there all,

    If I had tried all week with 2.6 and thought I understood, but this discussion completely helped.

    I had been cacheAsBitmap parameter to true for items in my screen and saw some gains performance - 20 fps at 27, my FPS is set to 30). the problem was that all the background apps caused late major development of animation during the test on the ipad. LOW quality setting back me at 30 fps (even 60 fps), but some of my rotated bimtaps suffered in Visual quality.

    I just went back inside and cacheAsBitmap set to false for all the items on the screen that I have tested and while the performance returned to 20 fps max, it is very regular and don't lag when other applications are in the background. I noticed that even if I only hide the context item, I start to see stuttering if there are background running applications.

    It seems as if you are not dynamically bitmaps, and you use just bitmaps, then by setting quality step to LOW and not cached anything (no cacheAsBitmap or cacheAsBitmapMatrix) you can get a solid 60 fps without lag, even when there is background applications.

    you will see also much faster additions of items to the list of display when caching is not enabled.

    for 3d, is the only thing I can think is that you cannot forcibly turn off cachAsBitmap, then you could try making it to an another bitmap and use this new bitmap to the screen. I think that as long as you don't add all cached items to the display list, you can see the performance you want.

  • How to disable script debugging? Alt key brings the debugger window.

    Here is the detailed problem description:

    http://forums.Adobe.com/message/2678671

    In short.

    When batch is being processed in the background (photoshop window is inactive) by pressing the Alt key brings the debugger window (ExtendScript Toolkit - Fit Image.jsx).

    Steps to repro:

    1. create an action (must include Image Fit script File-> controller)

    2. apply this action to a folder.

    3 switch to another window (not photoshop)

    4 hold the Alt key for a bit why.

    Current solution:

    1. do nothing at all in batch processing. Just sit and watch the screen for several hours.

    or

    2. process batches under separate user (use Windows key + L to switch).

    Another (related) problem. When is being batch (in the background) the Esc key does not work! Just switch to an application where you can use the ESC key, press Esc - and it won't work!

    OS: Windows XP

    Photoshop CS4, CS3

    I found a way around it. All you have to do is move your "ExtendScript Toolkit CS4" folder out of your folder 'Adobeutility.

  • GPS apps in the background

    I have an iPhone 6 s upgraded to iOS 10 the day it came out last week and I noticed that applications using GPS are failing in the background when several applications are in use. I ran to the Waze to check the traffic and Google Maps at the same time to check something on Friday and has noticed that if she was in the background would tend to turn off after a few moments. When I turn back, she will have to acquire the road again. I also have a Fitbit load HR, which uses the GPS on the phone via bluetooth to create a map of my route. I have it worked out with my usual Runkeeper app (which normally works perfectly) and noticed that Runkeeper would be closed after a mile or more. When I went to him to my podcast app after my race, Runkeeper would start up and missed the last two miles of my race. In addition, the road saved by Fitbit seemed jumped all over the place. I know that it is not unusual for GPS from blip, especially when moving through areas with weak signal or cell mutation or all through the streets of the city with tall buildings, but it seems that the problems have become more coherent. I have not tried to run with a single application to see if I have the same problem, but will try tomorrow. I used only a single app for navigation (Waze) yesterday evening and he seemed also to close after it is placed in the background for a while. Has anyone else seen anything like this?

    Hello alexhoward,

    Thank you for using communities of Apple Support. It is my understanding GPS apps do not work in the background, after the update to iOS 10. I use GPS every time I travel. I know that it can be crucial for applications GPS running in the background. I'm happy to help you

    I recommend first restart your iPhone. This can solve many unexpected behaviours. Follow the steps below.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.

    Restart your iPhone, iPad or iPod touch

    If the problem persists, reset your location service. This resets all settings at default location. Apps will be stop using your location until you grant them permission again. Go to settings > general > reset > reset the card and privacy. Here is some additional information on location Services.
    On privacy and location in iOS Services 8 and later versions

    See you soon!

  • right click Delete installed wall paper brings the properties

    The wallpaper I installed is not full screen. I want to remove it and return to the factory-installed.
    Make a right click on the screen brings the properties at all
    What I get is Save Page in

                           View Background image
                            select all
                              View past info
                              inspect element
    

    You may have installed a light theme (Persona).

    You can uninstall this theme and go back on the 'Default' theme (Tools > Modules > appearance/themes).
    See:

Maybe you are looking for