Building an application that works 24 / 7

Hi, I'm new to BB development and have the following question. I appreciate if you can send me links to code examples that help me solve the question below.

Can I build an application using JDE 4.7.0 where it can run when starting the device, then it checks every 4 hours (draws a server for content) content and have the application runs 24 / 7 where the application can NOT be terminated by the user.

If you see a problem in the battery life if the application runs 24-7, pull the content from one server every 4 hours, or is it possible to have a timer to wake up the application every 4 hours.

What you ask, it's certainly possible and for a developer experienced BB, not so difficult.

I wouldn't worry about the impact of battery life of what you're trying to do.  It will be not significant.

You will probably hit problems in the following areas:

restart a) making sure that the application starts correctly, after both a soft and hard

(b) the connection to the server using generic code that works in most situations.

(c) decide how to inform the user and/or get feedback from the user, as you run in a background Thread.

These are all covered in the discussions on this Forum or KB articles.  However, I don't think that there is place to direct you to the these right now.  You need to start coding in Blackberry, just do stuff from the UI simple, until you are familiar with your development environment and the capabilities of the device.  Once you have there, then search in this forum and KB, and then after specific questions if you want.

When start don't forget to look at the Sticky Thread:

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=13264

Tags: BlackBerry Developers

Similar Questions

  • Building an application that uses all local program or library files

    I need to build an application that will not use any local or program files LabView libraries (although LabView is installed on the PC). I am also curious to know if anyone knows if there is a way to debug such a request (that he compiled state).

    Any help on these matters would be greatly appreciated.

    Hello

    I'm not clear on what you're trying to accomplish here. As the previous poster mentioned, if you enable debugging when you build your application, you can remotely connect and probe the block diagram of the executable running. Executables using the runtime engine, but could also access the driver or other time if you use a specialized tools/module box. All this depends on your application.

    -Zach

  • Error when you try to run an application that worked when built with 8.6

    I have a simple program that I wrote in the 8.6 version that I've never had a problem generation and execution of applications built with it to 8.6.  Two weeks ago, I got 2009 by mail because we had very recently purchased 8.6 and I get errors when you try to run an application built with the same code using 2009.  The error relates to the Mean.vi.  He claims that he can't find it.  The error I get is as follows:

    Error loading VI 'NI_AALBase.lvlib:Mean.vi '.  LabVIEW support 3 error code: could not load façade.  I don't have access to the front panel of this vi, so I wonder if there is a problem with the runtime and not my code.  Please answer as soon as possible because it will quickly start to the impact of my calendar.  Thank you.

    Hello!

    The same problem ?

    I talked with my local OR technical support team. The application now works without any problem.

    Rule of thumb: when creating a Setup program do not forget that the option "Run Time Engine xxxx" in the category "Other installers" is selected despite the fact that the runtime is already installed.

    Best regards.

  • new development of BB. Try to build an application that opens a Web page. Error on BrowserField

    Hello

    I'm new to the development of BB. I am trying to create a container application that will open a Web page that is hosted on the internet.

    Grabbing the BrowserPushDemo, here is where I am:

    /*

    * AWAPP.java

    */

    Net.rim.device.api.browser.field2 import. *;

    Net.rim.device.api.system import. *;

    Net.rim.device.api.ui import. *;

    Net.rim.device.api.ui.container import. *;

    SerializableAttribute public class AWAPP extends UiApplication

    {

    Public Shared Sub main (String [] args)

    {

    BrowserField app = new BrowserField();

    app.enterEventDispatcher ();

    }

    Public Sub BrowserField()

    {

    pushScreen (new BrowserFieldScreen());

    }

    }

    class BrowserFieldScreen extends screen

    {

    public BrowserFieldScreen()

    {

    BrowserField myBrowserField = new BrowserField();

    Add (myBrowserField);

    myBrowserField.requestContent ("http://www.google.com");

    }

    }

    I am getting an error on the "app.enterEventDispatcher ()"; on the point...

    ERROR:

    Thus you use? The code is as follows:

    import net.rim.device.api.browser.field2.BrowserField;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class AWAPP extends UiApplication {
    
        public static void main(String[] args) {
            AWAPP app = new AWAPP();
            app.enterEventDispatcher();
        }
    
        public AWAPP() {
            pushScreen(new BrowserFieldScreen());
        }
    
    }
    
    class BrowserFieldScreen extends MainScreen {
        public BrowserFieldScreen() {
            BrowserField myBrowserField = new BrowserField();
            add(myBrowserField);
            myBrowserField.requestContent("http://www.google.com");
        }
    }
    
  • CF gives error of application that works in Oracle

    The following query gives a 'not a valid month' mistake in CF, but works fine when in Oracle. This is happening more and more frequently. I also tried to launch the to_date() date string as well as the phase_one_launch date to_date(), but no change. This looks like it should be simple enough, but obviously I'm missing something. Please show me the error of my ways! Thank you!

    SELECT pa_code, dealership_name, apm.dealer_id, dsp_id, phase_one_launch launch
    FROM: apm_alerts, dm dealer_master apm
    WHERE p1_launch_admin IS NOT NULL
    AND apm.dealer_id = dm.dealer_id
    AND dm.primary_manufacturer_id = 2
    AND dsp_id in (1,3)
    AND phase_one_launch < 1 July 2006 00:00:00 '
    AND phase_one_launch > 1 June 2006 00:00:00 '

    If you use the tronque() function, you will not have to worry about the time portion of the date:

    Select * from tbl_mytable
    When trunc (my_date) = 1 October 06 ')

    Note the date format - this is the date format default for Oracle. You can also use the to_char() function to convert before the comparison:

    Select * from my_table
    where to_char (my_date, "mm/dd/yyyy") = 1 July 2006 ")"

    I hope this helps...

  • Application (exe) works not properly on XP

    Hello

    I was wondering if I could get help or advice.

    I'm building an application that my students will be running on portable computers to laboratory. I use Labview 2012 32-bit on windows 7.

    The program is a state machine that controls everything simply a signal generator.

    When you run the exe on another laptop with windows XP, the sub s VI that disable the generator work very well (outside the while loop). When you run the VI, they don't seem to be send anything, i.e. no response from the generator, while everything else works perfectly.

    When runing the exe on the computer I wrote the VI, it works perfectly.

    This could be due to windows xp? Does anyone have advice?

    I've attached a zip of the file.

    You really need to add an error indicator to the façade. Which will tell you a lot. You will also need to provide details of what you have included in the Installer (that is what drivers, time, etc.).

  • Development of applications that run without installed DAQmx

    We want to develop the executables that include optional calls to connected DAQmx hardware.  It will be used for purposes of internal development and allocation of customers. We would like to include optional features such as temperature logging using the thermocouple NI 9211/USB-9162 entry-level camera.  If a customer wants to use our application with record temperature, they can buy the necessary materials of NEITHER and install DAQmx drivers.

    The problem we are trying to solve is how to develop applications that work also for the case when a client does not want to buy the material and does not install the DAQmx drivers.  Ideally, we can include a button 'disable temperature logging' on relevant applications, which prevents all calls to the DAQmx drivers at run time.  For example by including calls in a business controlled by this button structure.

    The problem we seem to have is that executables resulting always require customers to install the DAQmx drivers, even if they don't need them.  It doesn't seem to be a way to make the optional installation, since the source screw included calls to DAQmx drivers, even if they will not be used by the customer.

    Clearly, a solution is to develop two families of screws and the applications, which include DAQmx calls and one who is not.  However, which will result in a horrible collection of code that will require the maintenance and parallel development.

    An alternative is to ask all customers to install DAQmx drivers.  Unfortunately, the size and complexity of downloads that results will be a significant deterrant.  It's already a shame that our distributed software is a 50 MB download, when the size of the code in C++ or VB would be less than a tenth of that.  Another factor of increase of 10 download is prohibitive.

    We must find a solution more clean.  All ideas, plase?

    We are currently with LabVIEW 8.5.1 and DAQmx 8.9.

    You can use the conditional structure conditional symbols and disable disable in the project to do. You can, for example, have a symbol called "HAVEDAQMX" and, say, use a 1 or 0 (or anything you want) to indicate that you want to run the project with or without DAQmx. In VI using the conditional turn off the structure. For HAVEDAQMX = 0 case put in the code to run without DAQmx. For HAVEDAQMX = 1 case put in the DAQmx code. When you build the application, if any will get used, and the other will be thrown.

    Attached is a simple project that does this. You can view the LabVIEW help for more information about the conditional structure disable.

  • Visual studio 2005 application stopped working after windows 7 32 bit OS update to service pack 1

    Hi support them.

    I did tutor which is used to record the Windows Application to the learning process. It is a 32-bit application that works fine in Windows XP and Windows 7 32 bit OS operating system. But after the upgrade of Windows 7 Service Pack 1, it doesn't now. When we try to record something, it's giving the guardian has stopped working and program disappears.
    Any product from Guardian:
    1. it is a Visual Studio 2005 application.
    2. in execution of tutor, turn us the key to register PEHOOK.
    3. some of the DLLs we use are: Interop * and other user defined dlls.
    4. it can be used to record any application Windows 32 bit OS.
    When searching I got a solution in the forum:
    But after installing it too, the problem exists.
    Could you please help me solve this?
    Thank you very much in advance.
    Best regards
    Manu.

    Hello Manu,

    Thanks for the updates.

    Since then, enforcement, guardian, uses Visual Basic, please post this question in the Forums of Visual Studio for assistance.

    If you have any other questions about Windows operating systems, please get back to us.

  • Why build application vi works in the development environment, but not in the executable file; error 1025

    Hello

    I have a request ('A') that I am trying to build another application ("BuildA").

    I can create a request for A manually of its project using the Build specification, and it works fine (A.exe).

    Also, when I run BuildA.vi in the development environment he calls the "Build.vi" properly and again generates application A.exe very well.

    Then, when I ask BuildA (manually) and run BuildA.exe, I would expect that it also creates A.exe as BuildA.vi did in the development environment.

    However, it fails with the error:

    Code: 1025

    Reference VI opened in .vi NI_App_Builder_API.lvlib:Build (path)-> BuildA.vi
    Path of the VI: C:\TEMP\AppBuild\BuildA\vi.lib\AppBuilder\BuildTarget.vi

    I noticed this thread , which looks like a similar problem, but has reached no conclusion.

    Why BuildA.vi works fine in the LabVIEW environment, but the application that builda.exe does not work?  All paths are hard-coded, so it shouldn't be a path problem.

    Thank you

    -john

    eye_in_the_sky wrote:

    I guess we will have to keep the application building separated the disappointment... automated scripts

    There are still other options.  Lets say configure you VI to run then.  If you ran the following command from your script line

    "C:\Program NIUninstaller Instruments\LabVIEW 2011\LabVIEW.exe" "C:\BuildA.vi".

    It would then open your BuildA.vi in LabVIEW and run in the development environment.

  • I'm running Thunderbird ver15 under Win Vista. Gmail considers ver15 a low security application. How updated to a version that works with Gmail?

    This worm is working great for years. Suddenly, Gmail could not accept my sign-in. I have auto day together in Thunderbird, but it won't go past worm 15. Only after that I changed the setting in Gmail to enable low security Gmail applications would allow me in my emails via Thunderbird. I could connect to Gmail via the web very well, but not via Thunderbird. Could this be a problem with Vista?

    Thank you
    Richard

    Then I tried to configure server authentication to "OAuth2" method, but this option was not available. in the drop-down list.

    "OAuth2" only works for IMAP accounts. For POP "Normal password" is required, either in "allow applications that are less safe" or authentication step 2.

    You can set if "OAuth2' for SMTP server outgoing.

    When your problem has been fixed can you mark the thread as "solved" Please?
    Thank you.

  • HP workspace: is it possible to try HP work space with applications that uses my business?

    Hey everybody,

    Is there a way to try HP work space with applications that uses my business?

    Thank you

    Bill

    Yes, buyers of all bundle HP Elite x 3 on or before January 31, 2017 can enjoy a free 60 days HP Workspace Premium service launch promotion offer.5 which is more a $150 value per user! 6. contact your partner HP or HP account representative to activate the free promotional offer for 60 days.

  • Build a package only for the desktop application that allows applications to install?

    My organization uses the license serial number. I thought that if I built a set including the designer Cloud Desktop app, using a serial number which grants access to all applications, that the user would be able to install these applications on request. But after installation, when you open the creative Cloud application, it says 'Try' next to all applications. How can I get what I want?

    Thanks for the reply. It's already a package serialized, as I mentioned. But your suggestion is largely correct. When you create a package, it seems that even if you use a serial number that covers several applications, the resulting package creates only licenses for the applications in the package.

    Here is a procedure that seems especially to accomplish what I want:

    1. Using Packager, build a serialized package. It should include the creative Cloud Desktop application and allow admin users install updates. Don't add any application; It will be built using only the "basic elements".
    2. Using Packager, generate a license file with the serial number that covers the applications users need access to.
    3. On the target computer, install the software package.
    4. On the target computer, run the program AdobeSeralization of the license file package (must have the file prov.xml always in the same directory for easier use).

    When you use Creative Cloud Desktop, it will still say 'Try' next to all applications. When you actually install and run applications, they are fully licensed and not in test mode. This applies only to applications that are covered by the license file, of course.

  • Can I build an application using a table that is owned by another user?

    Greetings,

    I am very beginner in Oracle, and I really need help with this point.
    I created 2 user accounts: user1 and user2.

    In User1, I wrote:

    GRANT CONNECT, RESOURCE
    for User2.

    Grant select, insert, update
    on table1
    for User2.


    Now, user2 can see the content of this table, but only in the part SQL (select * from user1.table1)
    How can I create an application that uses the table1 to user2?
    When I go to application builder, I have to choose one of the tables belonging to the user2. But I can't use table1 User1 although that User2 has permission to access.

    Any help?

    Thank you in advance!

    Beginner's daughter

    Hello

    There is a powerful solution, that you can use.

    You can create a view. Some views may be editable (this means that it is possible to update
    the Table for the view) and you can add some constraints (Primay Key) on a view.

    For example:

    CREATE or REPLACE ADVICE {color: Red} User2.view_name {color}
    (col1 {color: red} {color}, col2 {color: red} {color})
    UNIQUE RELY DISABLE NOVALIDATE,
    The CONSTRAINT {color: red} pk_view {color}
    Col1 PRIMARY KEY {color: red} {color}) MATTER DISABLE NOVALIDATE
    ) AS
    SELECT col1 {color: red} {color}, col2 {color: red} {color} OF {color: Red} User1.Table1 {color};

    This example is from the link below:

    [http://www.psoug.org/reference/views.html]

    Hope this can help.
    Best regards
    Jean Valentine

  • LabVIEW crashing when you build the application (exe)

    Hello

    I am building an application from a simple labview vi (2011). The vi is that sets (boolean = TRUE) a line on the digital output card (NI 9472) when I start to run the vi. The program works very well after that I coded it. But when I try to compile an exe (application) of this project, then labview hangs in the build process. Is this a known issue? Help, please. I enclose my vi alongwith this email

    Thank you

    I'm sorry to hear that gascars.  I downloaded your project and VI and have successfully built an executable in LabVIEW 2011 and 2012 of LabVIEW.  Can you please send me a screenshot of the error you receive?  Also, can you make a simple VI that adds two numbers and see if that can be transformed into a .exe.

    Thank you

    Chris

  • Problems with secondary after building the application .exe

    Hi people,

    as I like am a self taught Newbie on LV and TestStand I have some problems with the construction of an exe file.

    I don't know if it is a question of LabVIEW and TestStand, so I posted this question in the two Forums.

    I use the interface simple chart that came with Teststand and added a secondary. TestStand is supposed to open the called VIs dynamically in this secondary.

    I used the code from the tutorial respective http://zone.ni.com/devzone/cda/epd/p/id/6278

    Everything works fine until I build the application. The screws are then open in pop-up windows clean AND in high school, but only the popup version is usable.

    I hope that I am too dumb to find the answer and that there will be a quick solution.

    If you have built the exe in LabVIEW 2009 selected in the configuration of your adapter TestStand and LabVIEW 2009 and your screws have been opened and saved in 2009 LV?

Maybe you are looking for