Development of system modules

Hey,.

I'm new to the world of blackberry development. I have some experience in java but I got rank my skills are intermediate.

What I'm trying to make in my learning process, is to do a lot of small projects just to test different things and understand how they work.

The concept, I'm currently trying is a background thread (module system). I use Eclipse and SDK OS6.0 and the blackberry Simulator.

I have a project that contains a module system only autoruns with the start-up of the unit. I would like to simply output to my debug console module every two seconds that I know its operation. Then I would have after 1 minute, it starts a GUI application.

My goal in this must really see the main installation and design of this type of program. Think like facebook and gmail that have background threads that are sitting and doing their own thing, can then update the GUI if they would like to (even if the GUI does not work).

I looked through the forums and tried to look online to find the source code of example of such a project. I find things who talk about setting "tip of spare entry," but not projects sample I could open and look.

There, could someone point me in the direction or give me a few minutes of your time to make an example of eclipse project?

Thank you very much

Stephanie

Hello

Peter law, development of Blackberry is always a skill of the stone age. But, do not be discouraged, when do you things, it's very rewarding. It's very cool application you wrote in your hands when you want (it also makes it easier to show .) anyway, to answer your question:

Create always-on applications:

http://docs.BlackBerry.com/en/developers/deliverables/23567/Always_on_1380986_11.jsp

To run these applications, you will need a RIM signature key:

http://us.BlackBerry.com/developers/javaappdev/codekeys.jsp

Obtaining samples in Eclipse:

http://docs.BlackBerry.com/en/developers/deliverables/12002/Import_a_BB_Java_plugin_sample_app_93733...

In regard to the slow-as-a-snail development cycle, you just have to get used to. I've probably spent days just staring at the start of Blackberry screen

PS: As stone has said before, you'll end up having to empty your old programs to create new ones, so it's a good idea to keep them in a repository, such as Subversion or Git. Good luck.

Tags: BlackBerry Developers

Similar Questions

  • Cannot delete the system Module

    My application consists of 2 modules. A system with autostart module and a module "classic."  I never had no problems update of the modules with the desktop so far Manager. The module system refuses to update and it is impossible to remove it. I'm stuck with an older version. If I do an uninstall via Desktop Manager, only the non-system module is removed. Try to remove the module from the system via the Options, device, application management does not work. The module is there, but a "Delete" option is not available for this module.

    Try an installation via Desktop Manager it reports as an "update", but the sysm module is not updated

    Version of the platform on my torch is 6.6.0.236.  The software version is 6.0.0.668 and my version of Desktop Manager 6.0 Bundle 2949.

    I'm completely stuck! Can not update the module of the system. It is a new problem. I have this Setup developed for several years and never had a problem like this before. It's extremely frustrating

    JavaLoader is a command line tool, it comes with the JDE plugin or eclipse in eclipse you can find it at plugins\net.rim.ejde\vmTools (where the sigtool is located as well).

    use to remove a cod file could be:
    JavaLoader u f clear codfile.cod

    check -? other solutions, this is a very handy tool to make screenshots, extract log files, load or delete files, etc.

  • How to make the system module in blackberry jde plugin for eclipse 1.3

    can someone please tell me "how the system module in last jde plug-in for eclipse"?

    Because I don't get any option as in the previous.

    Thank you & best regards

    Nrupay shah

    Each application needs to at least 1 entry point.  You might have the auto application run at startup and does not display an icon.

    Or you can have both with the help of another point of entry.  Could be invoked from an icon, and the other could auto start.

  • GlobalEventListener: to distinguish between system module and gui entrypoint

    Hey. I have an application with a system module that should always run and a gui with a EULA entry point. Once accepted the EULA, I want the gui to close application and the module of the system to begin running. (It works on battery pull, but the goal is to avoid asking the user to do).

    eventOccurred in GlobalEventListener fires twice, I guess once for the module of the system and once for the GUI. Two apparently weird things happen. First of all, when I use a global boolean to make a distinction between the sysmod and GUI, GUI screen is stuck and the sysmod seems to be exited. (Or I tried passing the processid of the sysmod and just exit with a different id - the GUI.) Same effect).

    Then when I remove the and check only for the guid of the global event, the eula, the sysmod screen farm stop logging but an icon of the application with the generic blue icon are still there in the app selector (hold the menu button).

    All I want to do is start the system module and close the EULA gui, so that the user need not cold start. Thanks for your time... code below. J.

    class MDB extends UiApplication implements GlobalEventListener 
    
      boolean thisIsSystemModule;
    
        // In main(  )
    
            if (arg0.equals("gui")) {
    
                globalMDB = new MDB();
                globalMDB.SetSystemModuleFlag(false);
                globalMDB.addThatGlobal();
        }
            else if (arg0.equals("activatesysmodandexitgui")) {
    
                MySystemListener msl = new MySystemListener();
                globalMDB = new MDB();
                globalMDB.SetSystemModuleFlag(true);
                globalMDB.addSystemListener(msl);
    
                globalMDB.ScheduleNextBackgroundChange();   
    
                    String logMessage = "MDB has both setup and scheduled a bg change.";
                    EventLogger.logEvent(0x4c9d3452d87922f8L, logMessage.getBytes(), EventLogger.ALWAYS_LOG);
                        System.out.println("\n\n>>" + logMessage);
    
                // post global event for eula to listen to and close
                globalMDB.addThatGlobal(); 
    
            //// Event ID comes from MDB.Start.System.Module.And.Close.EULA.GUI  0x5395aca2ff6df828L
                ApplicationDescriptor appDescriptor = ApplicationDescriptor.currentApplicationDescriptor();
                int smprocessid = ApplicationManager.getApplicationManager().getProcessId(appDescriptor);
    
             ApplicationManager.getApplicationManager().postGlobalEvent(0x5395aca2ff6df828L, smprocessid, 0);
    
                globalMDB.enterEventDispatcher();
        }
        else {
            // code for battery pull
        }
    
        private void SetSystemModuleFlag(boolean flag) {
    
            thisIsSystemModule = flag;
    
        }
    
        private void addThatGlobal() {
    
            addGlobalEventListener(this);   
    
        }
    
        ////  Called when user accepts the eula. EULA is gui entrypoint. I want the gui app to exit and leave just the system module
    
        private static void StartSystemModule() {
    
                int modHandle = CodeModuleManager.getModuleHandle("MDB");
                ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(modHandle);
                ApplicationDescriptor appDescriptor = new ApplicationDescriptor(apDes[1], new String[] {"activatesysmodandexitgui"});  // we want the system module
    
                try
                {
                    ApplicationManager.getApplicationManager().runApplication(appDescriptor);
                }
                catch (Exception e)
                {
                        System.out.println("\n>> Problem starting system mmodule\n");
                }
    
        }
    
    public void eventOccurred( long guid, int data0, int data1, Object object0, Object object1) {
    
            //Is this the GlobalEvent we are waiting for?
            //Long = com.samples.globalEventFiring.GlobalEventFiring
            ApplicationDescriptor appDescriptor = ApplicationDescriptor.currentApplicationDescriptor();
            int thisprocessid = ApplicationManager.getApplicationManager().getProcessId(appDescriptor);
    
            if (guid == 0x5395aca2ff6df828L)  //  !thisIsSystemModule &&         data0 != thisprocessid &&
            {
                    System.out.println("\nEvent received, eula exiting now.");
                    System.exit(1);
            }
    }
    

    Hello. The whole situation turns that arose because despite searching, I was not in the current Modules of the system to start when the application is installed (or opening). I knew only that they were running at startup, then in the absence of a way to start them from code, I asked users to cold start their phones!

    Although I do not understand what caused this error, it might have something to do with the planning of a timer job or adding a listener to an instance of the application system, and then exit the application before the timer is due to run it. Could someone with more understanding fill in us, on what it would do, but unless there is another way, I wouldn't do it.

    The solution was to do nothing. Delete all of the code to start the module of the system. And the other thing of smaller was to detect whether the instance is the module of the system or the gui entry point, Yes, you can use a global var but not a static. In acceptsForeground, you just check this global var defined in the hand and to be sysmod, false return.

    Will seek some of the discovered books recently, in order to aim to post 2 days a week only I think that in the future.

    TKS

    J

  • Creating a new system Module

    Hi all

    There is probably a really simple answer to this one, so I apologize in advance for my ignorance!

    If I create a new system module (i.e. to select 'definitions' of the group 'Configuration' under 'Dashboard'.  In the upper left pane of the split window that appears, you will find a green button '+' at the bottom of the list. Click this button to create a new system module). I followed using http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/w/admins-wiki/6156.custom-script-agent-2-build-a-wcf-dashboard-to-view-the-custom-agent-data and others, the module does not appear in the list of dashboards in the left menu.

    The user I use got a role of Dashboard Designer.  I have already created a system module this is displayed here:

    However, my other doesn't work.  Both have obtained the relevant administrator and authorized roles:

    I created the original a bit back and don't think that I made a trick to get it to show up under the dashboard.  Can you get it someone please let me know what I forgot to do?

    Thank you

    Brian

    Modules only appear in the list when they contain a view that is reported as a dashboard.

  • I was change in 'Basic' in the 'Development' of Lightroom module, but in some sort the 'Basic' program has disappeared, and I find myself with more detailed editing tools that I don't want. How to get back the menu basic edition?

    Question: I've been change in 'Basic' in the 'Development' of Lightroom module, but in some sort the 'Basic' program has disappeared, and I find myself with more detailed editing tools that I don't want. How to get back the menu basic edition?

    Hello

    Click on the window inside Lightroom go to control panel > and select Basic from there.

    Thank you

  • A closing system Module

    Hello, I'm developing a BlackBerry app as a Module of the system that runs at startup.  I would like to know if there is a way for the user to close the application, and if so, how can I get that so that I can run the cleanup code.  Thank you.

    No, the user is unable to close an application.

  • Lightroom 5: develop the disabled Module.

    Bought 5 Lightroom on disk and used until very recently. No changes made to the operating system (mac)

    Error message now "off module development"...

    Hi tt,.

    Please check the thread Lightroom 5.5 'Module Development disabled, please renew your membership' and follow the steps in the solution.

    Let us know if that helps.

    Kind regards

    Assani

  • The system modules and threads?

    (1) are grouped within the cod even modules of the system?

    (2) will run the modules of the system since a separate queue UI event thread? Basically, do I need another thread to do the work of the fork?

    (3) I noticed that the phone application is divided into 2 modules: api (1) (2) app.

    Is this a good practice? API modules for interfaces maybe. How do we export Service for consumption by another application?

    Thank you

    G

    In most cases, an operation that takes more than a few milliseconds to complete should be done in a separate thread, especially in a user interface application. Of course, this is not mandatory. The objective is to ensure that the user appreciates their overall experience with their device - not just with your application.

    Edit: Oh, and I almost forgot to answer your original question. To my knowledge, System applications share the CPU as an app we write are supposed to. In this sense, our applications are on the same level as the rims. Of course, I'm sure rim are multithreaded to some extent, but they are not running in a separate environment from our.

  • Store persistent with auto-start system module

    I would like to persist a vector of strings through the cycles of power of the device for my application access. I have two questions that relate to this, the first is: what method should I use to commit this vector in the persistent store? (ie. in a GUI application, I could put this code in the method close or exit but where does it go in a module of the system) The NDDN is how retrieve and store persistent data? (it seems that I might be able to achieve this with a BigVector class, but it was only a constructor and not an instance get method so I don't know how she gets the persistent store or how he commits it?) Please help, confused.

    Store is a PersistentObject

    private static PersistentObject store;
    

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

  • Develop the disabled Module Lightroom CC 2015

    I just renewed my monthly membership for 9.99 per month.  Unfortunately, I am not able to use the develop module.  He told me to buy a membership or license to reactivate the menu to develop.  Any guidance?

    JT

    Hi joeyt,.

    Logout and sign from the desktop application cloud creative to refresh the license on your machine files.

    Otherwise, you can follow the discussion below: Lightroom 5.5 'Module Development disabled, please renew your membership'

    Let us know if that helps.

    Kind regards

    Mohit

  • DEVELOP THE DISABLED MODULE - LIGHTROOM 5

    I'm so frustrated. I tried to talk to someone from adobe on the phone and they told me these stupid forums, which were not useful.

    I just happily editing photos in lightroom yesterday and this morning I wake up and cannot change my photos because the develop module does not work.

    I do not have the creative cloud subscription and I am perfectly fine with lightroom 5 that I had forever and now it does not work.

    all the forums that I reviewed are not useful. I rebooted, resigning in and everything. I do not download the cc version, mine says same "lightroom 5' at the top.

    I fear that all my information is missing, and I'm not even sure I have access to my serial number more.

    How can I solve this problem and get into my module to develop? I can't spend another two hours working on this. This is ridiculous.

    can someone help me?

    [Left generic Cloud/Setup forum for forum specific program...] MOD]

    The type of license is creative cloud, so if you have not paid the subscription, it does not work.

    You must enter your serial number Lightroom 5 so that you no longer have the CC license, but rather the stand-alone license.

    I'm not 100% sure how do that Lightroom 5, I don't have it anymore, but I'm sure you can understand. In my view, that there is a Register command under the menu help.

  • Should I worry about developing for Adobe modules site?

    I started working on an After Effects script and soon after started to, I found that I was the user interface using the inherited methods and the other way is to use CEP. I discovered that to use the CEP and distribute effectively I have I would make it so he could be put on the Adobe modules. But everything I find seems to be as if Adobe is phasing out Add-ons/Exchange. All development tools appear to be broken or out-of-date, you can't ask a commercial producer account (takes you to a page that says that the requested resource is no longer available), none of the adobeexchange twitter account has been updated since August 2015. This has been a frustrating rabbit hole.

    All I wanted to do initially was make a dialog in After Effects, which had a treeview with the developed by default hierarchy. The old way to do apparently has a bug that is more you can extend the items programmatically, but apparently it works correctly in CEP.

    So do I just go back to using the old method of creating a UI for my extension or is there a real future for Add-ons/Exchange and development of CEP?

    Also what the hell happens with business plan? I see it just that people creating scripts are supposed to pay Adobe, even if they are creating free tools for their applications?

    EDIT 3/18: Initially I said AdobeExchange.com, but I wanted to tell his successor Adobe modules.

    Hi Matt

    We can upgrade your account if you send us an email to [email protected] with your chosen Publisher name.

    You are right to say that the Exchange resources are slim at the moment. However, it is always worth your while to create modules because the site itself is a success and you reap the benefits.

    No, it's free to download content.

    Kind regards

    Krystal - team of modules

  • LR CC develop non-functional module

    I downloaded Lightroom CC library works well but when I take a picture in the develop module the screen goes blue (opaque) with white lines through diagonally. How can I fix it?

    Disable GPU acceleration as follows.

    Edit > Preferences > Performance tab, uncheck 'use graphics processor '.

  • develop the inactive module. said to renew my subscription, but I already paid.

    LR5 developer module is inactive, says I have to renew my subscription, but I already paid days ago.

    Hello

    Please check the help below document:

    Using creative cloud | 'Renew your membership' window appears when you launch a creative cloud application

    Kind regards

    Sheena

Maybe you are looking for