Is it safe to use the same GUID to validate a global event?

Hey everybody,

I write a global event of a library project that I set up in my main application. Everything works fine. However, I'm wondering whether or not it is a good idea to always use the same GUID, or if I should generate a new to each one time? If I generate a new one every time, I don't know how I can have the control of the main application to see what GUID to search, as it would be generated in the library project...

manager.postGlobalEvent(pid, 0xCAFEBABE, 0, 0, null, null);
public void eventOccurred(long guid, int arg1, int arg2, Object arg3,
            Object arg4) {
        if (guid == 0xCAFEBABE) {
            authorize();
        }

    }

Thank you!

I think that if the events then report the amount of the fine to use the same GUID with different arguments.

For example:

public class Events {
    final public static int EVENT_AUTHORIZE = 1;
    final public static int EVENT_OTHER = 2;
}
manager.postGlobalEvent(pid, 0xCAFEBABE, Events.EVENT_AUTHORIZE, 0, null, null);
public void eventOccurred(long guid, int event_type, int arg2, Object arg3,         Object arg4) {        if (guid == 0xCAFEBABE) {                    switch(event_type) {                     case Events.EVENT_AUTHORIZE:            authorize();                        break;                    case Events.EVENT_OTHER:                        doSomethingElse();                        break;                    }     }

   }

Tags: BlackBerry Developers

Similar Questions

  • Using the same application with filters prompted by guided Navigation

    Hi gurus,


    I have a requirement in which I need to show a report only when it returns results.

    To do this, I put the request in a section and applied a guided navigation using the same request as a source of demand.

    Can I use the same query in the navigation guided as request to the source?

    In the application there are filters which are invited

    My question - > in demand of guided Navigation Source, what I have to do the filters that you are prompted, or what I need to make it equal to the variables of presentation, which are populated by dashboard guests.

    I also have one of the guest as a guest of multiple selection...


    Thank you
    Ashish

    Ashish,

    Yes, you can use the same request here.

    For the application, you can use "IsPrompted" if same column is used in the guest of another use variable presentation here which is populated from the dash prompt. Just, 'specific' selected value based shud report results.

    Refer
    http://varanasisaichand.blogspot.com/2010/02/dashboards-as-prompts-in-OBIEE.html?m=1
    http://bischool.WordPress.com/category/guided-navigation/

    I hope that its useful...

  • recently to message this application memory is exhausted when I use the same applications as always before

    iMac running OS 10.9.5, suddenly getting alerts that my application memory is running out / has run out; I use the same applications that I used throughout and never had these alerts. I close all except an application but still get the message. This just started happening.

    HI there are Selia,

    Looks like you get this error message concerning the exhaustion of the memory of the application no matter how little you actually run. I would like to start by resetting your PRAM first:

    OS X El Capitan: reset PRAM your computer

    https://support.Apple.com/kb/PH21876?locale=en_US

    1. Choose the Apple menu > shut down.

    2. Look for the following keys on the keyboard: Option, command, P and r. you need to hold these keys down simultaneously in step 4.

    3. Turn on your Mac.

    4. Immediately press on and hold down the command-Option-r-P. You must press these keys until the black screen with the Apple logo to appear.

      Continue to hold the keys down until you restart your Mac, and you hear the tone of starting for the second time.

    5. Release the keys.

    After resetting the PRAM on your computer, you may need to update your speaker volume, screen resolution and startup disk preferences.

    Then test the question a bit. If it persists, I would then start mode safe so that the system can check for disk errors and clear a few caches of system level.

    OS X El Capitan: start in safe mode

    https://support.Apple.com/kb/PH21875?locale=en_US

    You can also use the activity monitor to see if there is a runaway process eating all your memory or put too much pressure on her:

    Use the monitor activity on your Mac.

    https://support.Apple.com/en-us/HT201464

    Thank you for using communities of Apple Support.

  • can I use the same product key for a gradient win 7 I'm ready to move from xp to win 7

    I bought a 7500 in 2010 precision workstation which came with win 7, but I asked to be demoted to xp. I'm ready to install the Windows 7 OS on the cd supplied with my system, original but I'm not sure if I need a new product key or can I use the same product key that has been activated as an OS xp to win 7 OS?

    The Dell Windows 7 reinstallation DVD will use the system locked preinstallation seizes only a generic Dell locked preinstallation key system which will automatically active if and only a valid Dell BIOS is detected. The same for the XP reinstallation CD.

    The COA affixed to the system must be Windows 7 Professional and must have a unique 25-digit product key for Windows 7 Professional. There is not need to be entered in the system locked preinstallation is used.

    See my Guide for reinstalling Windows for more details:

    http://dellwindowsreinstallationguide.com/a-clean-install-of-Windows/

  • Can I use the same disc hard ext I used for El Capitan Yosemite without losing my data?

    Can I use the same disc hard ext I used for El Capitan Yosemite without losing my data?

    Yes. You should not lose any data, but always have a backup. In this case, you have your internal drive as a backup.

  • Hi all OneHow can you buy an IBook UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing.

    Hello world

    How can buy you an IBook of UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing

    There is no solution, if it is not available in your area, you can't buy it.

  • How to separate 2 IPADs using the same Apple ID

    Problem: I have 2 iPad (IPAD 2/IPAD Air) using the same Apple ID.  To maximize the storage capacity on two IPADs, how can we separate the two so that each IPAD will show its max 16 GB storage?   I have to reconfigure the old IPAD back to factory setting?  I create an AppleID separated for the IPAD 2?  Your comments are greatly appreciated

    I'm not sure I understand what you're talking about. If you have two 16 GB iPads, they have only about 13 GB of storage available out of the box. Using the same Apple ID on both devices does not affect the amount of space you are using, if you sync the same content for both and in everything you turned on automatic downloads and use iCloud photo library on both devices.

    -What are you trying to achieve? What exactly do you do?

  • using the same search terms on ebay, getting different results on firefox exploer

    using the same words to search on ebay for internet explorer, I get results more when I use ebay on FireFox > is cutting some of the results when using Firefox

    It is always possible that eBay is to differentiate between browsers and gives different results, based on previous visits.
    You can try to delete cookies in two browsers to see if it has an impact.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".
  • Win7 with FF 31, smart phone 4.2 with FF letest ver. using the same account with 1 email. But the phone is not getting any collar, Bokmr, etc.

    Brother.
    We use win7 with Mozila 31, 4.2 with Mozila Android smart phone latest google app store on 04/10/0214. Using the same account with the same email. But the phone does not get any new information of win7 with Mozila 31. PL z give useful information.

    Hi w3ur_team,
    Thank you for your question. I understand that there are two features that are documented in the sync account. However the Android is not synchronized.

    There are two places we can check:

    1. In the Android settings, under accounts is the Firefox Sync or Firefox Sync (discouraged) joint account?
    2. Credentials work on accounts.firefox.com on the mobile device and are there any error messages in the synchronization of the settings menu > sync?

    See also Firefox Sync troubleshooting and tips for more troubleshooting steps.

  • Can I use the same profile of TB on my laptop and PC via Onedrive or iCloud? If so, how?

    I know that I can move my TB profile location and create new ones using Profile Manager. I did it using my account Onedrive and TB works very well. It would be very useful to be able to use the same profile Onedrive of two PC, but is it possible and how can I do? Thank you very much.

    It is possible, but prone to failure.
    You can not at the same time share a profile
    The network speed is essential. Portable Thunderbird and a USB would be a better solution.

  • Can I delete my old Firefox sync account if I have a new one that uses the same email address?

    Hello

    I took off all my devices a synchronization of the old account and set up a new synchronization. In this process, I used the same as before email address.
    I have no use of my old account of synchronization, so the question is:
    Can I remove the old account from synchronization (via https://account.services.mozilla.com/ ) and - implicitly - all associated data without affecting my new account of Firefox (and its data) somehow?

    Thank you!

    Even if you use the same email address the two synchronize the old and the new are separated. As long as you are sure that all devices use new synchronization then the old one is no longer necessary.

    Here is the main article for help on the new sync

  • How can I use the same firefox on a Flash DRIVE on 2 computers

    I use the same drive external hard usb on two computers (home and work). I would like to be able to install firefox on PC and use the same profile that if I get all my favorites, accounts etc. in the same way on both machines.

    Hello iangiom, the mobile version of firefox should work for your script (it is provided by a third party & mozilla not directly):
    http://PortableApps.com/apps/Internet/firefox_portable

  • I use the same URL in day after day tabs/windows, but am not ure if this version will restore all tabs on restart the computer every morning?

    I don't think I can give more info

    8 and 9 Firefox Firefox will allow me to continue with the same tabs from last session as in Firefox 3? :

    You're on Firefox 3.6.24 and if you ask if the new version 8.0.1 will do the same the answer would be Yes and it continues to be controlled by tools > Options > general > when Firefox starts: show my windows and tabs from last time.

    From Mozilla Firefox 4 (earlier this year), has presented app-tabs that you might want to listen to the video and read when standing up. Since you're using the same tabs they are probably in the same order, day after day after day, so just see the favicons on tabs and the model about whether something will not like order or missing.

    Since you use the tabs and windows as in earlier versions, the change will affect you probably even the least. But Mozilla has improved this which exists of sessions were closed, the windows and tabs via the menu ('Alt + H') history.

    What you probably will not tolerate changes to toolbars, based on studies of imperfect ergonomics (like Microsoft). You can fix it right and make the toolbars close to what you had before (instructions below).

    You can make Firefox 8.0.1 look to Firefox 3.6. *, see numbered 1-10 Articles of the topic following the interface user of difficulty Firefox toolbar, problems (make Firefox 4.0 through 9.0, resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.

    It is much more beyond these first 10 steps in the list, if you want to make Firefox more functional.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

  • My Apple ID has been locked for security reasons. I have all the details to recover my account that the account was created by a child of 6 years. How to unlock my account to use the same?

    My Apple ID has been locked for security reasons. I have all the details to recover my account that the account was created by a child of 6 years. How to unlock my account to use the same?

    < email published by host >

    It is illegal for a child from 6 years to create an Apple ID.

    You can take a date-genius bar with Apple and bring the original receipt Apple.

  • Why the temperature shows on my watch always different temperature on the watch of my husband when they use the same application?

    Why the temperature still showing on my watch shows a different temperature than on my husband watch when they both use the same weather app?

    Hi Jodie

    If you are each using the weather app (which is included in the framework of the iOS and watchOS), the following steps can help (followed by each of you):

    • On your iPhone, in the weather app:
      • If using anything other than the current location (which is included by default), make sure you have each added to a common location / city.
      • To add another location, select the icon «+»
    • On your iPhone, in the application of the watch, go to: My Watch (tab) > weather > default City > make sure you have each selected at the same location (for example: place of current residence or Mount Laurel).
    • On your iPhone, go to: settings > privacy > location Services:
      • Ensure that the location service is enabled;
      • Make sure Apple Watch is face value while it helps;
      • Check that the weather is set to always;
    • On your iPhone, go to: settings > general > background App update:
      • Check that the bottom App Refresh is enabled.
      • It can also help to activate the setting for the weather.
    • For optimal performance of your watch, keep the Bluetooth and Wi - Fi enabled at all times on your iPhone:
      • iPhone: settings > Bluetooth - on.
      • iPhone: settings > Wi - Fi - on.

Maybe you are looking for

  • Apple maps address and continuous route of incorrect information after four years

    The address of the map and driving directions in IOS devices 3/4 Ave., Almena, WI 54805 continues to be incorrect in Apple Maps to 369 12.  We have presented more than 15 applications over the past 4 years to this fixed and submitted two photos geoco

  • Image stretched on Samsung 16:9LCD connected to the Satellite M100 TV

    Hello I'm fighting for work reasons why my 40 "lcd will only show a stretched image when I connect my Satellite M100 via the vga output. Two weeks ago, I watched movies in the proper resolution and proportions to use your TV as extended desktop. Now,

  • Cannot open hotmail account

    My son has used her Hotmail account to his FB. He has forgotten his password to connect on his FB and needs to be reset. Unfortunately, it is unable to connect to its Hotmail to get the code/link to reset his FB password as it says ' this e-mail addr

  • How can I reduce the first time lock GPS?

    I am building an app that takes your location and calculate the distance of a few specified benchmarks. The problem I have is that it takes on average about 5 minutes to get what he first lock. Even when I change the settings to use explicitly aided

  • Waiting for Messages from blackBerry Smartphones, but now a witness flashing

    I have the 8330 model.  It's something that I just started to notice.  I might e-mail or a SMS in my mailbox on the handset but the red LED does not blink or I could see it flashing but not able to get him right this second and when I go to check wha