The creation of separate broadcast listener?

Dear developers BB,

I am creating an application that uses 2 requests: 1 for the GUI and 1 request for the listener to push (auto start and always run in the background, and I don't want the application icon appears in the Ribbon). The application will be,

I searched for some - what they're saying useful articles, but I have a few questions on how to do it. So please don't refer me to these objects and I prefer to see some working code and a good guide on how to do from the start.

DB - 00157 article tells how to create background app and app UI, but the code snippet is too little I do not understand what kind of application should be to the listener in the background.

The article says to refer to each application to another. If I add the UI project to the build path listener, and the listener to the project UI project build path, it will be a mistake. And if I add that these projects to the project (in the project properties) reference, I can't create the reference in code.

DB - 00406 speaks folder listener, and it is in fact only a single application. I don't like this idea, I really need a separate application 2

to communicate using world events you first device of type long as a GUID. in the jde/ejde, there is a tool to convert strings in long, typically, you use the package name + the name of the event.

to send a global event, you use the applicationmanager.

There are several methods that allow you to add a payload:

ApplicationManager.getApplicationManager () .postGlobalEvent (MY_GUID);

in your application interface user implement GlobalEventListener and copy the following code:

addGlobalEventListener

in the eventOccured method you obtain the GUID for the event occurred, check if it is MY_GUID and make your treatment

Tags: BlackBerry Developers

Similar Questions

  • Restrict the creation of Instances of entity of an entity that is deducted

    Hi all

    I'm working on a script where I cut the engine of the determinations of the creation of instances of an entity that is inferred based on some condition. Explaining the scenario below:

    Entities

    -----------

    Global

    | ___EntityA

                                  | ___Entity B

    Here the entity B is contained by entity A and one-to-many relationship.

    Entries of the attribute in entity A, multiple instances get generated in B as I infer the values of all attributes and the relationship in A1.

    Now let's say I have multiple instances of entity A. This will create instances of level B for each instance of entity A. Here's how it should look like:

    [Entity has]

    | Instance ___A #1(value of the attribute ID = ' A-I1 ')

    [Entity B]

    | _B #1 instance (the value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = "B- I2" "")

    | _B instance #3 (value of the attribute ID = "B- I3" "")

    | _B instance #4 (value of the attribute ID = 'B- I5 ')

    : _B instance #5 (value of the attribute ID = "B- I6 '" ")

    : _An instance #2(value of the attribute ID = ' A-I2 ')

    [Entity B]

    | _B instance #1 (value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = "B- I3" "")

    : _B instance #3 (value of the attribute ID = "B- I6 '" ")

    : _B instance #4 (value of the attribute ID = 'B- I5 ')

    : _An instance #3(value of the attribute ID = ' A-I3 ')

    [Entity B]

    | _B instance #1 (value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = 'B- I4 ')

    | _B instance #3 (value of the attribute ID = "B- I7")

    | _B instance #4 (value of the attribute ID = "B- I8" "")

    | _B instance #5 (value of the attribute ID = "B- I9" "")

    : _B instance #6 (value of the attribute ID = 'B- I5 ')

    In the above scenario, each instance of entity B have several attributes and entity A has only 1 attribute. Based on the value entered for the an attribute entity A instances will be generated under the entity B

    what I want to achieve with this scenario is based on the value of the attribute identifier should not be all instances in twice throughout the entire structure. For example, if the value of the Instance of entity B with B- I1 has been generated under the Instance #1(A-I1) of the entity has then it should not create an instance with the same value (B - I1 in this case) in one of the other instances of the entity a. based on the scenario, the structure should look like this:

    [Entity has]

    | Instance ___A #1(value of the attribute ID = ' A-I1 ')

    [Entity B]

    | _B #1 instance (the value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = "B- I2" "")

    | _B instance #3 (value of the attribute ID = "B- I3" "")

    | _B instance #4 (value of the attribute ID = 'B- I5 ')

    : _B instance #5 (value of the attribute ID = "B- I6 '" ")

    : _An instance #2(value of the attribute ID = ' A-I2 ')

    [Entity B]

    : _B instance #3 (value of the attribute ID = "B- I7")

                                  

    : _An instance #3(value of the attribute ID = ' A-I3 ')

    [Entity B]

    : _B instance #2 (value of the attribute ID = 'B- I4 ')

    | _B instance #4 (value of the attribute ID = "B- I8" "")

    | _B instance #5 (value of the attribute ID = "B- I9" "")

    This requirement is type of emergency and guidance on this would be a great help.

    Thanks in advance

    Leila.

    Certainly not the right approach (by using a shortcut rule is almost never correct).  You need a good model and phrasings to make sense of an approach.  You will also need to express declarative "truths" in your rules.  Indicating that which is known to be true is a better approach (for declarative rules) that describe a desired outcome, given some data (procedural programming).

    I suggest you build this simple project first, and then experiment with the conditions of a rule.

    -Create a project

    -Add an entity "parent".

    -Add void entity under the parent named "child".

    -Go to the relationship with the mother (probably default to 'all instances of the child to the parent') - change this wording to "the child of the parent.

    -Open a document in the rule

    -Add a table

    -the conclusion is "the child of the parent.

    -The first column, first row "doors and windows". Firstly the condition (in the same row) ' parent = 'Hotel.

    -The first column, second line "another child" - Condition in the second row of 'TRUE '.

    -Remove the default line "otherwise".

    -Build and debug without screens

    -Add an instance of the "parent" and change its attribute ID to 'Hotel '.

    -Develop the "child of the parent" relationship and display two child instances "doors and windows" and "another child."

    -Add another instance of the 'parent' using 'Building' as the identifying attribute

    -Expand its children and notes ONLY a child "another child."

    -Export these test data to XML (more on that soon)

    Two important things to note:

    -the condition in the first row limited the creation of a child "windows and doors" to a specific parent instance (i.e. 'hotel').  Similar conditions "say" that the children must be created for parents.

    -children of each parent instance are (by definition) separate proceedings regardless of the value that you choose to use for their identification value (the value identifies, but is not necessarily unique in all of the different parents because the children of each parent are distinct from other children of parents).

    Back to XML... To prove the second point, look at the XML and note the structure (child entity is within the structure of entity (i.e. him "contained").   Also note the "id =...". ' attribute for the child instance is different for each of the bodies of THREE children.  There were 3 child instances deducted even though two of them show the same attribute value in the debugger.  you know there are three different instances because both appear under the first parent and the third appears as the second parent.

    I hope that this clears up misconceptions with "duplicates" you saw...

  • Support for the creation of instances of entity through rules

    Hello

    Y at - it helps to generate an instance of an entity purely through rules? For example, if I have an entity called "VerificationItems", can I write a rule in the OPA, which will be an instance of this entity by element of verification that the applicant must produce (as a single instance for proof of address, a single instance for SSN etc.).

    Thank you
    Sam

    Hi Sam,
    I believe that the creation of the instance through rules is coming in 10.4, otherwise you will need to use a listener of inference to generate instances.
    However if the list of things that the applicant must produce is finite and knowable, then it could probably be done only through rules without having to generate instances. You could have them as rules in terms of the applicant, such as "the applicant must provide proof of address", "the applicant must provide a SSN.
    If the person has more than one address, then the rule of the 'evidence' should perhaps for each address, for example.

    We have implemented a system like this to do with the 'actions' in Sweden that work similarly to your suggestion, and it worked fine without the need to create these instances. I don't know the size of your modules but certainly create instances will have an impact on performance, so I recommend you to avoid if you can.

    Hope this helps,
    Ben

    Senior consultant
    Solutions of Monad
    http://www.monadsolutions.com

  • How to get the creation Date of the site recorded for the footer output (printing to PDF)?

    If you go to Page Setup in Firefox, the option for the footer is the date and/or time of output. I don't want today's date that its print, but would rather than the Date of the creation of this web session saved as it is important to display this information with a legal matter. The research that has been done on a computer is out of date of creation down instead. I know that I could add the date by using the custom field for a footer in the Page options but prefer automated sound somehow when you print to a PDF (CutePDF). Please let me know.

    Thank you

    You might be able to automate this process if you open your PDFs with Adobe Acrobat Pro and make sure that the PDF file has a date of receipt:
    Idea of *http://smallbusiness.chron.com/print-date-time-stamps-pdf-55986.htm...

  • Hi, me - Joshua, using Mozilla Version 38.0.1, please share the information of the creation of tab double... Thank you.

    Hi, me - Joshua, using Mozilla Version 38.0.1, please share the information of the creation of tab double... Thank you.

    Hello!

    https://support.Mozilla.org/en-us/questions/762043

    This solution should help you

    "

       Ctrl-click or middle-click the Reload button to open the current page in a new tab.
       Ctrl-click or middle-click items in the history of the Back and Forward buttons to open a page from that list in a new tab.
       Duplicate a tab with its history by pressing CTRL and dragging the tab to a new position on the tab bar.
       Dragging a tab in the browser window will detach the tab and move it to a new window, this is called tab tearing.
       Drag a tab back to the tab bar in the original or anther window to undo a detach or move a tab to a specific window. If a window gets empty (you tear off the last tab) then that window will be closed automatically. "
    
  • Problem with the creation of New and subfolders only appear is not in the list

    Thunderbird is allowing the creation of some New & subfolders, but they aren't always in the list each time.

    Photo shows the current list, but they tried to get money records IMarEST & Bank. (My apologies for Hypersnap stamps)
    Sorry, but the photo is not download!

    I use the Windows x 86 Version 8.1 - Thunderbird 31.6.0

    How to subscribe to see the imap folders:

    • Right click on your email account name, and then select 'subscribe '.
    • IMAP folders available on the server will be listed.
    • Select the ones you want to add to your e-mail client
    • Click the button to subscribe.
    • Press the OK button
  • How to prevent the creation of 15000 files for 300 MB each day Firefox

    Firefox creates files of 'file' in C:\Users\LeRicain\AppData\Local\Mozilla\Firefox\Profiles\dnm04rk5.default\cache2
    There are about 10,000 and 20,000 files I have to remove to get about 300 MB of space each day

    How to prevent the creation of these files in Firefox

    Here are the files from cache. Basically, it takes Web sites that access you a lot and records bits of them so they'll load faster the next time you visit them. FOR EXAMPLE if you visit Google.com much, Firefox will save some elements of this page in the cache so that the next time visit you Google.com, it will not have to re - download.

  • Cannot complete installation of Firefox 34.0.5. The installer of Mozilla Firefox crashes at the creation of shortcut (.lnk Mozilla Firefox) (see downloaded the image)

    Cannot complete installation of Firefox 34.0.5. The installer of Mozilla Firefox crashes at the creation of shortcut (.lnk Mozilla Firefox) on the status bar of the installation window. OS: Windows 8.1 system had old version of Firefox, but is no longer in the list programs. There is no file helper.exe manually uninstall any previous version or remnant of an older version, but I don't have folder C:\Program Files (x 86) \Mozilla Firefox to. Thank you.

    Try this:

  • At the end of the creation of an e-mail account, that the program will ask a software password security device, I don't know what it is or where to find it.

    At the end of the creation of an e-mail account, that the program will ask a software password security device, I don't know what it is or where to find it. To my knowledge I don't have a 'software security device. I use Windows 7 on an IMac.

    Apparently, you have defined a master password at one point. The password protects passwords that Thunderbird remembered.
    You can reset the password. More information in this article.

    http://KB.mozillazine.org/Master_password

  • Change the creation date

    I have different PHP files in different folders. I want to organize them by Date of creation. But I need to change the creation date in some cases. Can I do this?

    I select a file and the file > read > creation:

    but I can't change that here. Is it possible to change the date in "Create."

    The date of creation of a file cannot be changed.

  • Full backup impossible. An error occurred during the creation of the backup folder.

    Having had a HARD drive failure and have replaced I have now bought a WD 3 to WD My Book for Mac. Plug and put in place to save. However will not achieve, and gives this error message

    Full backup impossible. An error occurred during the creation of the backup folder.

    Does anyone else have this problem?

    Paul

    How the drive is formatted?

  • Export videos without losing the creation date

    In pictures 1.0.1 I am trying to export worth several years of videos to put on an external hard drive to save space on my main machine, but when I export them (via drag + drop on the desktop), they lose their date of creation - and, therefore, their context. They have different types of files, but a digital SLR, the iphones and old camcorders.

    I found more questions concerning the pictures, where the creation date is stored in the EXIF data for the photo, but I can't find similar data for these videos using "Get Info" or Inspector of QT movie.

    Any help would be appreciated.

    Thank you!

    export the unmodified original

    Videos have no EXIF data - only photos have EXIF/IPTC data - https://en.wikipedia.org/wiki/Exchangeable_image_file_format

    LN

  • We live errors in the creation of recovery media. Please try again

    Hello

    I bought the windows 8 hp pavilion series laptop and tried to create the recovery with blank disc DVD - R disc.

    While burning data first drive the HP Recovery Manager application up the pop-up message like "we live errors in the creation of recovery media. Please try again' with the OK key.

    Press the button Ok app closed automatically once.

    Model laptap

    HP Pavilion n003tx-15 Notebook PC (Windows 8)

    Please someone help me.

    Thanks in advance

    Concerning

    Trehout

    Have you tried to burn in Mode safe?

    http://support.HP.com/us-en/document/c03481733

  • Problem with XNET start VI after the creation of sessions

    I have a timed loop sending CAN messages via XNET screws. It works great, but I always lose the very first message. It matters little, I send the first message immediately after you create the XNET session or after a few milliseconds.

    The attached screenshot shows the initialization of my four sessions XNET. Although I am starting before the session with an XNET start VI, there is without success to get the first message.

    It seems that the sessions/CAN (selectable cards and HS CAN) interfaces are initialized only after the first call to write XNET. XNET write seems to imply XNET start (see documentation), but the appellant XNET start manually after the creation of sessions does not help.

    What I'm missing to get the interfaces online and ready before you send anything?

    I was able to solve this problem because they did not actually XNET screw sorry for this post.

  • When I try to scan several pages, it puts the pages as separate files instead of a single file.

    When I try to scan several pages, it puts the pages as separate files instead of a single file. For example, I may want to scan 5pages ofa patient office visit, yet, when I scan using the ADF, it separates each page in a single file.  I need to have the pages I scan have a single file. OfficeJet 6700

    prod # CV078A

    Windows 7 premium 64-bit

    Same thing for me.  I called HP about it the first time I tried I scans a document when my printer was 7 days old.  I was connected with the service to customers in India.  The technician spent about an hour with me trying to get the 6510/6515 printer to work, even to take control of my new 64 bit Windows 7 core i7 notebook.  Ultimately she essentially told me that even if it is announced to scan documents, this really means that each page is a separate document.  In other words, this printer, as well as all other issues, it is will only scan one page at a time.

Maybe you are looking for