Problem in NotificationsDemo sample application supplied with JDE 4.7.0

When we run NotificationsDemo example application on BlackBerry 9530 Simulator, the application is added in the profile under the heading other than "Notification Demo". With the help of which the user can set the access to his profile for this application.

But, its not considered in the NotificationsDemo example application anywhere and is not reflect while we call NotificationsManager.triggerImmediateEvent method too. Its only run the code placed inside the startNotification method in the ConsequenceImpl class. How do we alert the specified user profile setting?

I just next post:

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=28830#M28830

I've set up ConsequenceImpl, a set of activities inside the startNotification method, which was actually in conflict with the settings of the custom profile "Notifications Demo".

I had commented the NotificationsManager.registerConsequence method and everything works as expected.

Thank you

Tags: BlackBerry Developers

Similar Questions

  • Problem running the sample Application after installation patch set 4.0.2.00.07

    We just applied the fix 4.0.2.00.07 on our environment to TEST APEX4.0.
    Now, I can not run the sample application. "When I run the application, log in using either the administrator or the user of demo with the #lower_case_workspace_name #", the browser generates the following error message:

    ORA-06550: line 2, column 8: PLS-00201: identifier 'CUSTOM_AUTH' must be declared ORA-06550: line 2, column 1: PL/SQL: statement ignored
    ERR-10460 error cannot perform the function of verification of the authentication credentials.

    The sample application works very well on our DEV APEX 4.0.0.00.46 environment * without * the patch set 4.0.2.00.07.

    Does anyone have an idea how to solve this problem
    Thank you

    Hello

    Ensure that the CUSTOM_AUTH & CUSTOM_HASH functions exist in the scheme of the analysis of the sample application.

    CITY

  • 2 the end sample application Cairngorm3 with Maven

    Hello

    I am setting up a project using "best of breed" technologies "Flex-Spring-Hibernate" with Maven support, just like our great "todo sample""" http://opensource.adobe.com/svn/opensource/cairngorm3/trunk/samples/todo. "

    But my skills is so limited, so I can't do it by myself. I need an example to follow (even copy/paste). Everything I need is something like our "todo sample" on its own (not an application within the source code of cairngorm3).

    If you have or seen anything like this, please tell me.

    Thank you

    Question P/S:: I built the app todo successfully, and then deploy to tomcat. But I got a blank screen when I run. I guess that I miss some steps of the installation. I searched the installation guide, but could not find one. Please share me if you have the guide

    • I have recently published a fork of this example todo in git cf. https://github.com/Adobe-TXI/cairngorm3-todo-sample

    • Flashbuilder files are committed simply use the

    • In regards to the java project files, you can use M2eclipse to generate

    • a comprehensive guide coming: looking for that kind of stuff in this guide?

  • Problem in a sample application (Download Manager)

    Hello

    I'm downloading the app Download Manager and tried in my files, run and load, but when you look in the file manager on downloads I can't find the file, I've looked everywhere.

    I put a permissions in the shared file.

    Please what is the problem?

    It is in the EnregistrerNomFichier function;

    baseName = "tmp /" + basename; Look in the directory tmp

  • Confusion in the sample application on the client side

    Hello

    I write a client side app to push BB. I found an example of code in Push_applications_for_the_BlackBerry_Enterprise_Server-Development_Guide--915141-1116110032-001-US.pdf. There is no mention of App ID, URL of the bps or initiator push URL of the application of this code. I also checked the sample application provided with the SDK of the Push Service. He got all these things.

    I'm confused, that these things are necessary or not. Also, I read somewhere that the customer must register with the initiator of push, it's a mandatory step?

    Code who should I implement, for client push, working with the infrastructure based BB server push?

    If you use the BlackBerry Push infrastructure to push, then you will need to have the unit register / subscribe in order to receive the shoot.

  • Problems with JDE Sample PictureBackgroundButtonField.java

    Hello world

    I use the JDE PictureBackgroundButtonField.java sample to create a button with a picture on it. It works fine, except that when I insert my application, the button is 'in focus' (watch the _onPicture) and won't not blurry. Can anyone understand this? Thank you!

    Here is the instantiation of the button:

    PictureBackgroundButtonField pic = new PictureBackgroundButtonField("Hello", DrawStyle.HCENTER);
            hfmBottom.add(pic);
    

    Here's the PictureBackgroundButtonField.java:

    /**
     * PictureBackgroundButtonField.java
     *
     * Copyright © 1998-2009 Research In Motion Ltd.
     *
     * Note: For the sake of simplicity, this sample application may not leverage
     * resource bundles and resource strings.  However, it is STRONGLY recommended
     * that application developers make use of the localization features available
     * within the BlackBerry development platform to ensure a seamless application
     * experience across a variety of languages and geographies.  For more information
     * on localizing your application, please refer to the BlackBerry Java Development
     * Environment Development Guide associated with this release.
     */
    
    package com.kflicks.ui.Custom;
    
    import net.rim.device.api.ui.*;
    import net.rim.device.api.system.*;
    
    /**
     * Custom button field that shows how to use images as button backgrounds.
     */
    public class PictureBackgroundButtonField extends Field
    {
        private String _label;
        private int _labelHeight;
        private int _labelWidth;
        private Font _font;
    
        private Bitmap _currentPicture;
        private Bitmap _onPicture = Bitmap.getBitmapResource("res/search_on.png");
        private Bitmap _offPicture = Bitmap.getBitmapResource("res/search_off.png");
    
        /**
         * Constructor.
         * @param text - the text to be displayed on the button
         * @param style - combination of field style bits to specify display
               attributes
         */
        public PictureBackgroundButtonField(String text, long style)
        {
            super(style);
    
            _font = getFont();
            _label = text;
            _labelHeight = _font.getHeight();
            _labelWidth = _font.getAdvance(_label);
            _currentPicture = _onPicture;
        }
    
        /**
         * @return The text on the button
         */
        String getText()
        {
            return _label;
        }
    
        /**
         * Field implementation.
         * @see net.rim.device.api.ui.Field#getPreferredHeight()
         */
        public int getPreferredHeight()
        {
            return _labelHeight + 4;
        }
    
        /**
         * Field implementation.
         * @see net.rim.device.api.ui.Field#getPreferredWidth()
         */
        public int getPreferredWidth()
        {
            return _labelWidth + 8;
        }
    
        /**
         * Field implementation.  Changes the picture when focus is gained.
         * @see net.rim.device.api.ui.Field#onFocus(int)
         */
        protected void onFocus(int direction)
        {
            _currentPicture = _onPicture;
            invalidate();
        }
    
        /**
         * Field implementation.  Changes picture back when focus is lost.
         * @see net.rim.device.api.ui.Field#onUnfocus()
         */
        protected void onUnfocus()
        {
            _currentPicture = _offPicture;
            invalidate();
        }
    
        /**
         * Field implementation.
         * @see net.rim.device.api.ui.Field#drawFocus(Graphics, boolean)
         */
        protected void drawFocus(Graphics graphics, boolean on)
        {
            // Do nothing
        }
    
        /**
         * Field implementation.
         * @see net.rim.device.api.ui.Field#layout(int, int)
         */
        protected void layout(int width, int height)
        {
            setExtent(Math.min( width, getPreferredWidth()),
            Math.min( height, getPreferredHeight()));
        }
    
        /**
         * Field implementation.
         * @see net.rim.device.api.ui.Field#paint(Graphics)
         */
        protected void paint(Graphics graphics)
        {
            // First draw the background colour and picture
            graphics.setColor(0x00EE3526);
            graphics.fillRect(0, 0, getWidth(), getHeight());
            graphics.drawBitmap(0, 0, getWidth(), getHeight(), _currentPicture, 0, 0);
    
            // Then draw the text
            /*graphics.setColor(Color.BLACK);
            graphics.setFont(_font);
            graphics.drawText(_label, 4, 2,
                (int)( getStyle() & DrawStyle.ELLIPSIS | DrawStyle.HALIGN_MASK ),
                getWidth() - 6 );*/
        }
    
        /**
         * Overridden so that the Event Dispatch thread can catch this event
         * instead of having it be caught here..
         * @see net.rim.device.api.ui.Field#navigationClick(int, int)
         */
        protected boolean navigationClick(int status, int time)
        {
            fieldChangeNotify(1);
            return true;
        }
    
    }
    

    Seems fine,

    What do you mean by go not blurred? When you create the button, it will be the onFocus image. If you want to give it focus, you need to add the parameter focusable,

    If your code should look like,

    PictureBackgroundButtonField pic = new PictureBackgroundButtonField("Hello", Field.FOCUSABLE | DrawStyle.HCENTER);
    
  • How to call the samples shipped with JDE

    Hello

    I'm new to the BlackBerry development. I downloaded and installed JDE 4.7 which contained similators 9530 and 9500. JDE and Load Simulator fine on my windows XP machine. I use JDK 1.5. I had a few teething problems if anyone can help it will be great.

    It's strange that this simulator does not load if the java environment variables (JAVA_HOME, CLASSPATH and path to the location of the binary java) are defined in the windows environment. It loads well if the environment does not contain these variables. I worked around this by setting the variables in the environment and using a jdkenv.bat file if necessary.

    When I run ide.bat (for JDE) he lookes for javaw.exe in the path which make sure by running jdkEnv.bat before ide.bat. So my JDE also charge very well. I did a generation of samples shipped with JDE he built successfully. So far so good.

    Problem:

    When I try to run the samples, it loads the Simulator fine. I also see the name of the sample applications, if I followed the following phone Simulator {options} USER interface-Advanced Options-Applications online online I can see the names of all listed here demo. But I don't see any UI on the Phone Simulator that I can use to invoke these demonstrations of?

    I tried an explicit charge of the demo by file-> load Java program, it displays an hourglass and returns me to the phone home screen. It also updates the date and time of the application above mentioned location to the new location. But I'm still not a UI element user where I can call it in the demo.

    How to call HelloWorld or PhoneApiLog demo of the Simulator.

    I'm new to the development of BB and I'm sorry if I'm missing something simple. But indications will be useful.

    Concerning

    asachdeva.

    Discovered samples at-online downloads.

    Thanks for taking a peek.

  • recording programmed with BPA on the client sample application

    I'm trying to register my device (example of customer installed app) and I'm trying to register and unregister...

    Unfortunately, when I submit my credentials and try to register with BPA, I got:

    java.lang.Exception: registration rejected by BPA

    I have had this on the application log:

    Rc = 200 HTTP response

    Recording programmed with BPA

    Push the status API callback: failure

    Command 'register' failed with the error: java.lang.Exception: recording with BPA has been rejected by the server

    It happens more often...

    What do I have to wait until the BPA accepts my registration? How long is it?

    I don't get what want to be...

    in my BB Debug Portal my device shown as being ACTIVE but in PPG UNSUBSCIRBE

    I use this BPA URL: http://pushapi.eval.blackberry.com

    should we build a Manager to solved this problem if want to build push own app, which is an easy to use?

    Well, the problem is already solved...

    I try to record using HttpConnection BPA and it still works and I got the answer correctly...

    In the sample application customer it use the API to push record and especially it did not work (do not register correctly)...

    may I suggest to those who are faced with the problem of sam me... you can try the simplified BIS press http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample...

    It works very well on me!

  • Problem with JDE 4.7 debugging

    Hello

    I can't debug my application with JDE 4.7.0.41. The problem is: whenever I have start debugging (Debug-> Go), the Simulator starts and gives the message saying "Connection of debug.." to never. Then, by the Simulator with closing force, JDE becomes inadmissible. Any help on this would be greatly appreciated...

    Thank you.

    Kind regards

    -DK

    Hi RexDoug,

    You are absolutely right. Thanks a lot for this solution long-awaited... I earased all Simulator files and it seems to work fine now... great!

    Kind regards

    -DK

  • Displays a text ("sample application") Logo and Description ("this is a sample application") with different font size

    Hello


    I use the universal theme of apex 5.0 and tries to display logo text ("sample application") and description ("This is a sample application") with different font size.


    Type of logo - text

    Logo - sample application - this is a sample application.

    I want to display the description in the smallest font size, so I changed the Logo below

    Logo - < span style = "" are-size: 3.8 rem; ' > Sample App </span > - < span style = "" Dimensions are: 1.8 rem; "> this is a sample application </span >" "

    But I have following problem.

    1 - the font size for both is the same (why the size is not different?, because I gave the size of different font within the span tag)

    2 - the text of the whole logo whose description is displayed twice.

    -Once in place of the actual logo and

    -the second on the left upper tree navigation. (just below the text of the actual logo)

    I tried to use the logo attribute, but what makes the whole logo & its description with the same size. I need size of different font for both, so it is unusable.

    Attribute logo - style = "" are-size: 3.8 rem; ""

    Really appreaciate help.

    Thank you

    Deepak

    DeepakJ wrote:

    I use the universal theme of apex 5.0 and tries to display the text of the logo ("sample application") and description ("this is a sample application") with different font size.


    Type of logo - text

    Logo - sample application - this is a sample application.

    I want to display the description in the smallest font size, so I changed the Logo below

    Logo - application example - This is an example of application.

    But I have following problem.

    1 - the font size for both is the same (why the size is not different?, because I gave the size of different font within the span tag)

    Cannot reproduce. Using the code above results in different format text as expected. (He looks terrible IMO)

    2 - the text of the whole logo whose description is displayed twice.

    -Once in place of the actual logo and

    -the second on the left upper tree navigation. (just below the text of the actual logo)

    Including HTML tags in text in the 5.0/theme 42 APEX logos results in this behavior. I consider this as a bug as (a) it says nowhere that it is not possible to do so; (b) the text of the logo is not HTML - or attribute-escaped when used in the page.

    See How to avoid to show the logo on the navigation bar to get an explanation of the underlying cause and a workaround to allow the common use cases include the text and a picture in the logo. This particular solution is of no use here. The solution to this problem requires a custom with the theme the theme roller style sheet, which is the preferred way and support to customize and extend the universal theme.

    • Click the Thème Roller on the developer toolbar.
    • Expand the CSS custom section.
    • Add this style custom rule:
    .t-Header-logo a span {
      font-size: 3.8rem;
    }
    .t-Header-logo a span:after {
      font-size: 1.8rem;
      content: " - This is a sample application.";
    }
    
    • The page will automatically preview changes.
    • Click on record under and type a name for the style of custom theme.
    • Topic close Roller
    • I hope that decide that it is not a good idea and cancel the mods.
  • Problem running graphs in the OEID 3.1 sample application

    Hi all

    I just installed OEID 3.1 and I am trying to execute the sample application provided by oracle with reference to the procedure described in the section "Creating a sample Application of data Ingested with ETL Integrator" in the guide getting started in OEID 3.1 documentation.

    I have ingested the sample data in short using the EID31_SamplePipeline.zip pipeline Integrator ETL server.

    Now, when I try to run the chart named Baseline.grf using the IDE of clover for ETL Integrator, it throws errors - following

    Graph execution '. / graph/InitDataDomain.grf ' failed!

    Error during initialization of the graph.

    Initialization of the component failed [create Data Domain: CREATE_DATA_DOMAIN].

    Unable to create the Web Service proxy.

    Cannot establish the WSDL parser.

    Cannot read the WSDL to location ' https://localhost:7002 / short-server/ws/manage? wsdl '.

    WSDLException: faultCode = PARSER_ERROR: Wsdl not found https://localhost:7002 / short-server/ws/manage? wsdl

    Inner exception: element [CREATE_DATA_DOMAIN:Create Data Domain] - initialization of the component failed [create Data Domain: CREATE_DATA_DOMAIN].


    Note:

    I use the basic SSL communications.

    I even updated to 7002 port numbers (this is my SSL port for the server for short) in workspace.prm and I even changed my graphics for https rather than http.

    But I still get this error.

    I added VM arguments in JRE for trustStore and keystore and passwords corresponding paths.

    I added the same IntegratorETL.ini file too.

    I've also marked compatible SSL also true for components that have this property.


    Interestingly, I'm even able to load the wsdl from the browser file if I get the URL

    https://localhost:7002 / short-server/ws/manage? WSDL

    While the ETL Integrator Designer mentions the exact URL even when he gives with the exception of WSDL saying Wsdl not found.


    Can someone tell me what could be the problem and how I need to solve this problem?

    Any help/suggestions appreciated.


    Thank you!

    Christophe


    Hi Christophe,

    I have consulted several groups, and although it looks like initially a hostname resolution problem (it came a lot), support was offered that this is related to the fact that you try to run the sample application in SSL mode, while the Start Guide that documents this application indicates that it is running using the no - SSL only. In other words, when you install the software for the purposes of execution of a sample application (and not for production), you must explicitly uncheck the flag SSL. This is not recommended in production.

    So, I suggest to uninstall and reinstall in non-secure mode.

    Please see the requirements on the sample application here. The doc has a requirement of "without SSL:

    http://docs.Oracle.com/CD/E40518_01/General.310/eid_getting_started/TOC.htm#about%20these%20Installation%20instructions

    Hope this helps and sorry you need to reinstall.

    Julia

  • Is it possible to use Video Phone (Cirrus Sample Application) with FMS4?

    Hello

    could someone explain to me please, is possible to use Video Phone (Cirrus Sample Application) with FMS4?

    It seems to be possible as the video source are these text:

    RTMFP (Adobe Cirrus or FMS) server address
    [Bindable] private var connectUrl:String = "rtmfp://p2p.rtmfp.net";

    If possible, where you will find a script server to FMS/opt/adobe/fms/applications/videophone/folder?

    Sorry for the bad English
    Thank you very much!

    the last VideoPhoneLabs uses a new feature of relay short messages on Codename Cirrus.  the semantics is super simple and there is no reason that you could not implement the feature on FMS4.

    the relay function works like this: when peerID a01234... wants to send a short message to peerID b12345... (both connected to Cirrus), peerID... a01234

    NC is the NetConnection

    NC. Call ("Relay", null, "b12345...",... args...);

    the message will come out as a call to the function onRelay of the customer in the NetConnection on b12345:

    nc.client.onRelay ("a01234...",... args...)

    VideoPhoneLabs uses this function to the call signaling.  You should be able to concoct a similar function on the side server for FMS4.

    Otherwise, other that the URI that you use to connect to SGF, the introduction of P2P on FMS function should be identical to Cirrus.

  • Problem with Photos Soft - error message the application built with PhotoLibraryPrivate version 215.65.00 but works with version 209.52.00

    Hello, hope someone can help with my MacBook Pro sluggish.

    I'm in OS X Yosemite 10.10.3 version and tried to upgrade to El Capitan 10.10.5 on a Macbook Pro 13inc mid-2012.  He said it has already downloaded twice, but when I open the software it is still sitting at 10.10.3 without modification, download seems to take a lot of time - been sitting for about 6 hours.

    Now I trying to open the photos app but get the following error coming - the application built with PhotoLibraryPrivate version 215.65.00 but works with version 209.52.00.

    Any advice on what are the options for my new photos app! Have you tried different time machine backups and the computer does not like it either

    Upgrade to El Captain OS X 10.11.2 which includes Photo 1.3

    I have no idea of what you see on "El Capitan 10.10.5" as far as I know is not exiat

    LN

  • Cannot compile the sample applications with the native SDK BB10

    Hello

    I downloaded the BB10 (10.0.4) native SDK and the sample application pack. However, some of the sample apps fail to compile (AudioControl and BelligerentBlocks, for example). The target isn't the playbook (Simulator).

    I get an error do the following:

    make [2]: * [C:/ndk-10.0.4-workspace/AudioControl/arm/o.le-v7/AudioControl] error 1
    make [1]: * [all] error 2
    make: * [all] error 2

    Looking at the newspapers of generation, I receive the following linker error:

    'C:/ndk-10.0.4-workspace/AudioControl/arm/o.le-v7 '.
    C:\bbndk-10.0.4-beta\host\win32\x86\usr\bin\ntoarm-ld: Notes: 'screen_get_window_property_pv' is defined in DSO C:/bbndk-10.0.4-beta/target/qnx6/armle-v7/usr/lib/libscreen.so.1 try so add to the linker command line
    make [1]:

    Am I missing something obvious? I'm competely new to makefiles, so if anyone has a suggestion, it would be welcome.

    Thank you.

    The latest NDK for Playbook is available from: //developer.blackberry.com/native/download/

    For waterfalls NDK 10.0.4, follow the instructions in Momentics content/getting started/Getting Started Guide Help/help / install and set up the Simulator

  • do not start the service push sample application

    Hi all, I have downloaded and installed the v1.0.0.5 BlackBerry Push Service SDK and tried to install it based on the Quick Start Guide. The first problem was that I couldn't start the Tomcat. After I double-clicked start.bat, I just a blank command window, open for 1-2 seconds and immediately close. I never had the same problem with another application using Tomcat, and can be resolved by using my own installation of Tomcat program. So I do the same thing, I use my own installation of Tomcat program. After that, I get the Tomcat service, but only service non-secure (http), not its secure (https) service. But I think that is not the problem, as long as I can still access it. Then I deploy the sample application (war file: debug-portal, sample-app and pushsdk) to my Tomcat and try to start it. I've got to start the Debug-Portal and pushsdk only, no-sample application. When I tried to start the sample application, I got this message: FAIL - the context path/sample-app Application could not be started, I searched this forum and have had almost similar problem. But those who wrote the display had the problem that all applications could not be started. And he found that it was caused by application_id. He forgot to put the id of the application during installation. I put my application_id (even if it's just false application id, 123456789012345). Can someone help me? How can I install and run the sample application? Thank for any help. PS. I use Windows Server 2003, Tomcat 6.0.20, Oracle 10 g and there's a Glassfish server on my pc (but it was off when I try this push-service application example). Best regards, Novan Ananda

    Well Yes... I forgot to enter the app_id on sample-app - context.xml. all applications work now.

Maybe you are looking for

  • Lower the resolution of the screen

    Hello! Got a game for my children and I need to lower the resolution to 640 x 480. My slider in display settings only goes down to 800 x 600. Is their a way around it. Game will let me play otherwise. Thank you

  • Wireless N is not available

    I again Linksys WRT610N with my new HP D7T Entertainment Notebook.  Wireless G works fine at 54mbs on both channels of the Linksys WRT610N.  When I put my WRT610N Wireless N only D7T from HP can no longer access the network.  My D7T seems not to have

  • Download and open pdf files

    I keep losing the ability to open, create or download the pdf files?  Why is happening.  My computer within 1 year.

  • Crash blue screen Windows 7 w / BCCode: 4A

    I get an unexpected blue screen crash from time to time, and any help would be greatly apperciated. Info PC Specs and error attached.  Is there anything else I can provide to help? Again any help would be greatly apperciated. Manufacturer: ACER Model

  • Stuck and I need to a few testers with 9650, 97xx, 93xx devices

    I developed an application which is very heavy on the CPU, and I need to get an idea of what the hardware supports all. If you have a 9650, 97xx, 93xx device, I'd appreciate your help test it. The test won't take very long at all and requires just a