Correct procedure for a background application

I'm just after some advice on the correct procedure for the handling of my application going on in the background.

Basically I want the app to continue running if the user switches to another application, unless the user chooses the close menu item.

So right now I'm handles the event close and him do ask the background so it stops at the close running event and my screen from the stack.

public void close() {
    UiApplication.getUiApplication().requestBackground();
}

Now, this caused the menu item close not to work because she calls just this code as well.

Am that I supposed to replace the narrow Menu with my own?

Or I just hurt?

I also want the app to close if the BB will restart or reboot.

Chris

What you have done is very good - I suggest that you also add an another menu item 'Stop the Application', which stops everything and makes a system.exit()

Tags: BlackBerry Developers

Similar Questions

  • Correct procedure for the Ram upgrade.

    Dear Sir, I recently bought a laptop from HP 15-r074tu,

    It comes preinstalled with a 4 GB of Ram. I want to upgrade to 8 GB.

    I don't know where I should achieve this. I should get this done @ the store where I bought it?

    Or do I have to reach out to a HP's Service Center. Just so it is not void the warranty.

    Can someone kindly shed some light and enlighten me.

    Thanks in advance.

    Hello

    Here are the details given below for the upgrade of memory also attach the manual link given below for your reference. Check replacement for the component numbers 73 procedures page & 1 Page for more information on memory.

    Memory
    housing for module customer accessible/upgradable memory 1 or 2 (depending on model)
    2 slots: DDR3L - 1600 MHz Dual Channel Support (Core processors)
    1 location: DDR3 1333 MHz Dual Channel Support (DDR3L-1600 demoted to the)(Bay Trail) DDR3-1333
    processors)
    1 location: DDR3 1333 MHz Dual Channel Support (DDR3L-1600 demoted to the DDR3-1066)(Bay Trail)
    processors)
    Supports dual-channel memory
    Supports up to 8 GB of RAM in the following configurations:
    8192 MB total system memory (8192 × 1.) or (4096 x 2)
    System memory total 6144 MB (4096 × 1 + 2 048 × 1)
    Total system memory of 4096 MB (4096 × 1.) or (2048 x 2)
    Total system memory of 2048 MB (2 048 × 1).

    Spare part number : 8 GB (PC3L, 12800, 1600 MHz) 693374-005

    Manual link

  • What is the correct procedure to take a host of a hav?

    Sometimes need to take a host far a hav, what is the correct procedure for it?

    Thank you!

    George

    Disconnect the host in your cluster, and then remove host.  Or evacuate all customers outside the host, put in maintenance mode, and then remove the cluster

  • What is the correct procedure of DMBS_XPLAN for the query execution plan

    Hello.

    We are on Oracle 11.2.0.3 on Linux. I am dev. DBA and we have about 80 developers Java development team. They want to question the execution plan of queries to resolve the sqls. Generally, they use the GUI tools like the toad to see execution plan. I always use the procedure for the following query execution plan:

    
    

    Select * from
    Table (dbms_xplan.display_cursor (null, null, 'allstats + cost'));

    I should suggest that they use this too rather than rely on tools like the toad - because they can show estimated plan and not the actual plan. And to provide a sql, it is best to use the real plan to work with. Do not take account of 'allstats + cost' part in the command above, but my point is: should I ask them of still rely on sqlplus and not the GUI tools and use the command display_cursor package DBMS_XPLAN?

    I will be grateful for suggestions.

    OrauserN

    You must use the DBMS_XPLAN package and functionality.

    The tool used to run the package doesn't matter. A raw request to DISPLAY_CURSOR will run the same server code in any tool including Toad.

    If you rely on other GUI features (for example a "explain plan" button or similar) then you know what this feature of actuall application running under-the-covers.

    My suggestion would be to assess and consider using Oracle free sql developer version 4 because it is not only FREE but also uses the DBMS_XPLAN correctly.

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/index.html?ssSourceSiteId=ocomen

  • KeyPress events for background application

    Hi all

    I need to develop the following features:

    When a certain key sequence is pressed [say #data #], an application must be called

    The background application can check for such a sequence and start the event.

    However, the question is, if an application can have access to key events when he is not on top of the stack in the user interface. In addition, such a feature may be possible when another application [say a native application such as Message or address book] is running.

    I personally don't think it is possible, however, if someone met an implementation of the similar device or method to achieve, then it would be really great.

    Thank you and best regards,

    Basilio J V Souza

    This is possible if the user interface for your application is in the foreground.  If this is the case, you can use this technique:

    Use a sequence of backdoor

    http://supportforums.BlackBerry.com/T5/Java-development/use-a-backdoor-sequence/Ta-p/445180

  • Update my application. What is the proper procedure for updating an app/folio?

    I designed a folio in Indesign CS6 and created a folio application in adobe dps and downloaded successfully on the app store. Now, I want to update my application. What is the proper procedure for updating an app/folio?

    If it's a simple editing application, you will have to recreate the whole thing and

    submit an Apple update for approval.

  • Background application of MysQL PHP

    Has anyone using PHP / MySQL / uninstall to develop a background application that is clocked at base?  Basically, I'm looking to trigger a procedure stored all "n" minutes.  Is it possible to write / configure an app for that?

    Hi Jim,.

    There is a little bit different cron to applications running on a windows platform.

    I couldn't tell you who is the best.

    ICron

    ZCron

    nCron

    etc.

    Google cron for windows.

  • Is this the correct procedure to several Boolean button VI?

    Hello everyone. I did this VI to use several Boolean buttons for my scale (an "Open/Close" button and a "reset" button). I want to make all my camera as boolean commands (ON / OFF) switches or buttons. IM asking this procedure using a while loop. What is the correct procedure. My VI is downloaded.

    In my previous post, a user has helped me and said, can I use a machine to States producers/consumers in this situation, but this program seems a bit Advanced and difficult for me, because I'm inexperienced with Labview.

    Thanks in advance

    Orlando

    Ah, I pointed out the bad control.  I place the event to watch the channel instead of the button.  It's one of the dangers of having several controls/indicators with the same label.  The fixed VI is attached.

    In addition, you need not use the button run continuously.  Simply run the VI normally and use the stop button to stop the VI.

  • Problem with background application.

    Hi all

    I develop background application, which always runs in the background. If the application then restart my app starts to reboot. But for some unknown reason, to leave you my request. But I am unable to know the reason why is output.

    Can someone help me please in this?

    -Shekhar.

    On the device, tap L G L G

    Or, you can download the appliance event log using javaloader.

  • Need to know about the background application

    Test Simulator with JDE version 5.0. I work at the request of the alarm. So I created a background application, where I look in the database and perform the necessary task vibrant just the phone. I have another point with nongui param. Its works fine. Now the problem is, I set an alarm for once, now is the time and the alarm goes off and the user he repeated for 10 minutes, average while I just still run my application in the menu of the eclipse without closing the Simulator, I was expecting that the alarm that was repeated should get fired, but it won't. the problem always occurs when I run the application without closing the Simulator. So what can be the reason for this, and if I just closed Simulator and run it from the eclipse menu its new working fine means repeated when time comes it vibrates the Simulator can someone explain me what are the problem here.

    Do not disable not either sorry here...

    Your code looks fine.

    You can run this code too early.  You probably need to wait until the device is completely upward before you check this:

    http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

  • Installing utilities and SDK for subsystem for UNIX-based Applications

    I am running Windows 7 Ultimate 64 bit on a Dell computer brand new with an Intel Core i5 CPU.

    To the appropriate location in the Control Panel, I activated the service "Subsystem for UNIX" - based applications It then adds a start menu item pointing me to a download page, where I can download an installer to activate.

    I downloaded "Utilities and SDK software of the subsystem for UNIX-based Applications_IA64.exe", which is the package of 64-bit intel approriate for my hardware.

    However, when I try to install this package, I get an error dialog box: "this installation package is not supported by this processor type. Contact your product vendor. »

    How can I activate this feature successfully?

    I found an answer on http://www.suacommunity.com/forum/tm.aspx?m=15341&high=This+installation+package+is%2csupported+by+this+processor+type.

    Correct packing for me to download is apparently despite my processor is a intel, AMD one.

    Hey, guys - maybe you could, like, LISTED AS in THE DOWNLOAD WEB site or something. Suffice to say.

  • Cannot print the financial dashboard on message of 64 bit windows 7 host computer driver print for 32 bit applications has stopped working

    Original title: Windows 7 print driver host for 32 bit applications has stopped working

    Hello

    In my company, we have a Windows 7 (Professional 64 - bit) computer with installed on financial Edge(32-bit). We have been able to print from this fine machine, but recently we changed a printer of Conan for a Dell 2150cn Color Laser Printer (64-bit driver). Now, when we try to print from financial dashboard, we get the following error:
    Host of the print driver for 32 bit applications has stopped working

    Problem event name: APPCRASH

    Application name: splwow64.exe

    The printer is not a network printer, it is physically connected to the machine. In addition, it seems to print very well, if we are not trying to print from financial dashboard. Unfortunitly, once we try to print from financial dashboard, we cannot print from something else. In addition, financial dashboard can sometimes print (this is rare). I uninstalled and reinstalled, using the drivers that came with the CD (tried to download through the Dell website, but Windows seems to hate this driver)

    Hi IToccrra,

    1. the computer is in a domain environment?

    2. who is the provider of the financial advantage program you're talking about?

    Method 1: Try to print in clean boot

    See the following site:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.microsoft.com/kb/929135.

    Note: to set the computer back to start normally, use the step 7 in the same link.

    Method 2: Run the printer Troubleshooter

    See the following site:

    Open the printer Troubleshooter

    http://windows.microsoft.com/en-us/windows7/Open-the-Printer-troubleshooter.

    Method 3: update the printer driver

    See the following site:

    Updated a hardware driver that is not working properly

    http://windows.microsoft.com/en-US/windows7/Update-a-driver-for-hardware-that-isn ' t-work correctly.

    The details of the error are telling us that the accident occurred when the host of the 32-bit printer driver tries to use the printer. Apparently, you are trying to print from is a 32-bit program, and is not able to use 64-bit print drivers correctly. I would also ask that you contact the vendor of the software (from when you try to print) to check the issue.

  • Can anyone advise on the correct format for indexoptions vbscript?

    Can anyone advise on the correct format for indexoptions vbscript?

    I'm going round in circles trying to do things.

    for example indexoptions.title when you install a vbscript to generate an index

    I can't find the right object to attach to.

    There was a book and a Document is open in these attempts have been made:

    InDesign.ActiveBook.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method

    "InDesign.Application.ActiveBook.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    "Application.ActiveBook.IndexOptions.Title ="New Index"' application error 424 object required"

    "ActiveBook.IndexOptions.Title = 'New Index' ' error 424 object required ActiveBook"

    "InDesign.Application.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    "Application.IndexOptions.Title ="New Index"' application error 424 object required"

    "MyInDesign.IndexGenerationOptions.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    ' MyIndexDocument.Indexes (1). IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method

    ' MyIndexDocument.Indexes (1). Title = 'New Index' ' error 438-object doesn't support this property or method

    "MyIndex.Title = 'New Index' ' error 438-object doesn't support this property or method"

    ' myBook.Indexes (1). IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method

    "MyInDesign.ActiveBook.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    "MyIndex.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    "MyInDesign.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    "IndexOptions.Title = 'New Index' ' error 424 object required IndexOptions"

    "myDocument.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    "IndexOptions.Title = 'New Index' ' error 424 object required IndexOptions"

    "InDesign.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    "myBook.IndexOptions.Title = 'New Index' ' error 438-object doesn't support this property or method"

    Any suggestion would be appreciated.

    Hi Jongware,

    I guess that's not chrisnaylor error but a typo in the VB removal:

    In the "local", we can see that this should have begenerationof Index Options:

    Kind regards
    Kasyan

  • Computation of factorial by creating a procedure for her

    Hello everyone
    I tried to create a procedure for the calculation of the factorail of a number
    but something's not right
    I hope that you guys can drive the correct path
    Here is my code
    create or replace procedure factorial(n in number)
    is 
               v number;
    begin
    
           for i in reverse n..1
     loop
                  v :=v*i;
    end loop;
    dbms_output.put_line(v);
    end;

    Why reverse?

    
     1   create or replace procedure factorial(n in number)
      2   is
      3              v number :=1;
      4   begin
      5          for i in  1..n
      6    loop
      7                 v :=v * i;
      8   end loop;
      9   dbms_output.put_line(v);
     10*  end;
    SQL> /
    
    Procedure created.
    
    SQL>
    SQL>  begin
      2   factorial(5);
      3   end;
      4  /
    120
    
    PL/SQL procedure successfully completed.
    
  • Correct location for the ADF - settings.xml?

    What is the correct location for the adf ADF - settings.xml in JDev 11 g applications file? Documentation conflicted says:

    (1) as by Frank & Lynn Oracle Fusion Developer Guide pg 92, it appears in the correct location for the ADF - settings.xml is < workspace >/.adf/META - INF.

    (2) according to the ADF Web Guide, it seems, it must be < workspace > / < project > / META-INF: http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/ap_config.htm#BABCBJAB

    Which is correct? With our thanks,

    DMI

    Chris,

    the recommendation to create the ADF - settings.xml in the project source META-INF directory solves the problem of two projects to be used in a single workspace. If the two projects use ADFc MDS got confused. Notes version in R1 mentioned as follows:

    If your J2EE ADF (EAR) application contains several modules web application (WAR files) and contains more than one ADF task flows, then you can get unexpected behavior due to the web application using another its flow XML file with the same name of task (the problem is more likely to occur with the adfc config.xml file because each web application has usually one). You can avoid this problem by defining a 'root web application' separate for each web application (WAR). Web application at most one cannot have any parameters of root web app. To set the "web app root" for an application, you must add an XML file called META-INF/adf - settings.xml to WAR under WEB-INF/classes with content as follows:

    +
    xmlns:WAP = "http://xmlns.oracle.com/adf/share/http/config" >
    ++
    ++
    +
    +
    ++

    The value of the rootName attribute can be any name that uniquely identifies the web application (war) within the overall application (ear).

    In JDeveloper, the new file can be added as follows:

    + 1. Expand the web application project in the browser Application.
    + 2. Right-click on "Sources of the Application", and then select the item 'new ' +.
    + 3. Select "XML Document" and click OK.
    + 4. Type "adf - settings.xml ' under the file name +.
    + 5. Click on the "Browse" button, select the source directory of the project, click the iconic button "Create a new subdirectory" at the top right, type "META-INF" directory name and click OK, then click Select.
    + 6. You should now have a directory and file name "adf - settings.xml ' name '/META-INF +.
    + 7. Click OK to create the new file.
    + 8. In the Source Editor, paste in the XML file above and put a value appropriate for the rootName attribute (this is known as the parameter 'root web application').
    + 9. Make sure that the deployment for the Web application profile includes the new file META-INF/adf - settings.xml under WEB - INF / classes.

    So, if your application has a single web project then this configuration as documented in the book is good to use. To avoid the problem described above (which is in response to bug 8395585) you set it in the project's source. Note that adding adf - setting.xml in the project was presented as a work-around. The bug is closed with a fixed rate per 11.1.1.2, which means that, since the PS2 there should be no need to store the ADF - settings.xml in the source of the project more.

    So long answer that leads to a simple answer: the book is good and the documentation lists always bypass it. However, I'll fill a bug against documentation and make report understand (do not have the time to check the issue being fixed)

    Frank

Maybe you are looking for

  • Unlock the Mac with Apple iWatch

    I have a MacBook to 2015 and iWatch. The Mac is on MacOS Sierra and the iWatch is on version 3, so both devices are on the latest version of the software. I also have an iPhone on the latest IOS that the watch is twinned with 6. All devices are on th

  • How to restore section bookmarks to the top toolbar and in printing and closing a tab drop-down menu?

    Recently, a change has occurred which made me lose the "bookmarks toolbar" and "close tab" menu drop-down when I stop "Firefox". This has happened Each time Firefox opened == Bookmarks toolbar has disappeared. Closing menu gives no possibility to clo

  • N300 Wireless Router WNR2000v4 slow download speeds

    Hello I have Time Warner Cable and pay for 50mps download speed. When it is connected directly to the Modem I get better than 50mps download. When I run through the router wireless using wireless or wired connections download speed slows down slot 10

  • Signed NewSubProperty number 64-bit

    I have a very simple question. I want to create a local variable programmatically by using the NewSubProperty method: Locals.NewSubProperty ("size", PropValType_Number, false, 5) If I, a number is created. The type I need must be whole signed 64-bit.

  • Re: HP Simplesave won't WORK! {Read!}

    I have a 1 TB simplesave, which will not be displayed on my laptop. or office. I hear no indication of work when I plug it in, and the light blinks. What I need to know is... ghoulish I replace the pcb which couple the pins on the HARD drive? I have