Waterfalls: NotificationDialog in the active Frame

Hi @all,

I want to implement a "alarm" - functionality of my application, which displays a Notification dialog box in some situations. I get the job of Notification dialog when the application is in the foreground. However, the application will be often minimized. I tried to create a Notification dialog box in the active Frame, but it is not displayed.

Now my question: is it possible to display a Notification dialog box, while the app is an active Frame (and how)? I think that it should be possible because it is an important feature, but I couldn't make it work.

Thanks a lot for your help!

Peter

OK, I found the solution on my own. It is possible to display active frames notification dialog boxes. The implementation is the same as put forward app. My problem was that I got another error that prevented the projection dialog.

Tags: BlackBerry Developers

Similar Questions

  • How to disable or remove an extension of the active frame?

    How to disable or remove an extension of the active frame?

    Hello

    Get access to the responsibility of the functional administrator, click personalization - > search path - > go ahead and select Update customization
    You can check / uncheck peronalization (use box) and select personlization to disable or remove customization to undo changes.

    Note: Customization of Delete will delete the data server (MDS) Meta peraonlization

    -Had

  • All tuned if app is put in the active frame?

    I have an application that uses the constant GPS, but it doesn't have GPS if the user does not interact with it. Is there a way I can hear if my application is put in and outside the active? I want to be able to have the GPS off when my application is in active frame mode and turned on when it is open.

    Thanks in advance. The answers will be be loved and solutions marked as resolved.

    Hi bmrr,

    You can find this blog useful to make your application to listen to the signal of thumbnail():

    http://devBlog.BlackBerry.com/2013/08/listen-up-to-those-important-lifecycle-event-signals/

  • The C/C++ libs give access to the active Frame outside the waterfalls?

    Native libraries in C/C++ can access the Frame active outside waterfalls?

    Inside of the waterfalls, I would use ScreenCover but this class is connected to the object Application of Cascades. As a QT application my code has only the QApplication object available.

    There is a set of functions in navigator.h 'cover of window' bunch, and I suspect that what you use is among them.

    They appear roughly underdocumented, however, so I don't know to what extent you will have with him unless there is a sample. See for example: https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_r...

  • How to select all the text in the active text block?

    Hello!

    I need a simple script for:

    1. Select all the text in the active frame (ctrl + A)

    2. Paste from the Clipboard (ctrl + V)

    3. go in the beginning new text (ctrl + Home)

    and

    4. Insert the 2 paragraph marks (press enter 2 x).

    That's all.

    I tried, but I'm not not an expert, only good script in DTP and pre-press.

    Thank you.

    Here you go again-

    if (app.selection.length > 0 && app.selection[0].hasOwnProperty ('parentTextFrames')) {
        frame = app.selection[0].parentTextFrames[0];
        frame.parentStory.contents = '';
        frame.insertionPoints[0].select();
        app.paste();
        frame.parentStory.insertionPoints[-1].contents = '\r\r';
    }
    

    Peter

  • The Devs creating their active Frame for a separate QML file covers? I'm stuck

    Bit in trouble, I do my best to bring my Apps support 10.2.1 10.2.2 I practically everything by working the * beep * covers Active, I did do a check and create the file QML according to less than 10.3 or greater

     ComponentDefinition {
                id: creator;
                source: ""
                function createQMLObject(sourceUrl){source=sourceUrl; creator.createObject()}
            }
    

    Feel free to use that btw ^.

    if(olderFirmware===true)  Application.setCover(creator.createQMLObject("CoverOlderFirmware.qml"))
            else{Application.setCover(creator.createQMLObject("Cover.qml"))}
    

    Now for some reason, they do not work, they seem to be created, but do not want to show, normally I would create it from my main.qml but the passport and its lid Multi forced me to separate the covers in their own QML files

    Begins like (not included UI code)

    import bb.cascades 1.2
    
        SceneCover {
            id: large
    
            content: Container {
                background: Color.create("#000000")
                layout: DockLayout {}
    }
    }
    

    Place in a container gives me a weird error on not able to create a list in an object, probably referring to MultiCover and SceneCover as a child of the container.

    Any suggestions?

    I use active selector to do this, find in this application example:
    https://github.com/RodgerLeblanc/AssetSelector

    This method can support 10.2.1 users and below, don't forget to add the lines of c ++ this blog:
    https://bb10code.WordPress.com/2014/12/10/active-frame-made-easy/

    Check your email, I also sent you something on your last post on the forum.

  • Active frame, the Splashscreen being thumbnailed-> error

    Hi, I am adding active frame on my apps (dynamic image as a backdrop)

    It works well, but it has a problem: app still the splashscreen-> being thumbnailed-> (see only black)-> when tap in the foreground, near app.

    What could cause the problem?

    Thank you

    Hi, I have change the location to setCover after some process done httpRequest. And the app will not fill again.

    Was before I put setCover on constructor ApplicationUI.

    void ApplicationUI::setActiveFrame()
        {
        iIsActiveFrameSet = true;
        MyActiveFrame *activeFrame = new MyActiveFrame();
        Application::instance()->setCover(activeFrame);
        iQmlDocument->setContextProperty("_activeFrame", activeFrame);
        }
    

    Thank you

  • Dynamic active frame with the data from a file

    Hello

    I'm looking in creating a dynamic active setting (like the BBM active frame that has a title of the header and moves through updates).

    I will create a page that has a heading "interesting facts" and then labels different facts and I was wondering how I would go on the establishment in order to create a dynamic active frame that scroll the different labels?

    Thanks in advance

    Hello

    You can follow the example of code here.

    https://github.com/BlackBerry/Cascades-samples/tree/master/BFB-showcase

    The "activeFrameQML.cpp" has this feature

    {voidActiveFrameQML::update()}

    TODO: Replace with piloted by data update instead.

    If {(isActiveFrame)

    QTimer::singleShot (10000, this, SLOT (update ()));

    issue of updateChanged();

    }

    }

    And you can place your updated code in the 'AppCover.qml' to update your ActiveFrame

  • New window (active Frame) of the API File Path coverage helps

    I'm still learning, but I can't understand how to deliver the active location of my frame image in the new window cover api.  Here's my function that is called from the entercover event listener.  The image is a jpg in the images of my webworks app folder.  Any ideas?

    
    

    Few things to note-

    Also, you must wait until you entercover. You can do it anytime and entercover is for you to know when the cover is about to go, then you can start an interval or something, if you want to be updated with the information from your server

    path must be a full path
    'file:///accounts/1000/shared/downloads/windowcover.png '.

    If you want a path to local file, you can use (for files in your content)

    'local:///images/active_frame.jpg '.

    I have not yet complete samples but you can take a look at our test scenarios

    local path-
    https://github.com/BlackBerry/BB10-WebWorks-framework/BLOB/master/test/functional/manual/BlackBerry...

    https://github.com/BlackBerry/BB10-WebWorks-framework/BLOB/master/test/functional/manual/BlackBerry...

    Samples should be available soon.

  • HP try to send me to this day that she wouldn't, take, says I need to get the Version of the Net Frame work V 2.050727, said to communicate with my editor about Apporiate version of the Net frame work.

    You need to get the update, it must get The Net Frame work V 2.050727, where can I get coming up to date, for the calculation.

    Hello

    1. do you use the 64-bit or 32-bit operating system?

    2. update you are trying to install HP?

    I suggest you to perform Windows updates.

     
    If there is an update for .NET Framework, I suggest to install the update and try to install the update from HP.
     
     
    To run Windows update manually, follow the steps:
     
    a. go to the Windows Update site. Open Internet Explorer and go to tools, Windows Update.  You must use Internet Explorer; using other browsers will result in an error message.
    b. click 'Use Administrator Options' in the menu on the left. Once the Administrator Options screen, choose to search the Windows Update Catalog under "update multiple. operaing system."
    c. install the Active X control if requested. On the screen type catalog Microsoft Update in the operating system you want updates in the area of research (for example, Vista or XP).
    d. click 'Add' next to each update you want to install. Updates will be added to your shopping cart.
    e. click on "View cart" in the upper right corner of the screen when you are finished selecting your updates. Make sure everything you want is here, and then click 'download '. In the "Download Options" popup that appears, choose where you want to download the files. A progress bar indicates the status of the downloads.
    f. navigate to the location where you downloaded the files. Double-click the files to install. You will probably be asked to restart your computer after installation is complete.
    g. to download updates for use on another computer, which is not connected to the Internet, for example, save files on removable media such as a USB drive or a disk and load the media on the computer. Double-click the files and install as you would if you downloaded them.

    If there is no update for .NET Framework, try to download and install the update manually from the link below.
     
     
    Microsoft .NET Framework Version 2.0 Redistributable Package (x 86):

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=19

    I hope this helps.
  • Cover (active Frame) alarm SHOOTING when wide screen

    While my application is in Active Frame mode, I have an alarm that fires based on a set of users. The user gets to set the interval on how often updates the screen of the frame of the cover.

    When debugging my application using the Alpha of DEV, I noticed the continues to fire even when the screen turns off alarm. To help reduce battery drain I would cover alarm to stop cooking when the screen turns off and start over when the screen is back on. Is this possible?

    The alarm I set is: QNXSystem.system.setAlarm (1000 * alarmTime, True);

    IowWindowEvent.WINDOW_STATE_CHANGED allows you to control exactly if your app is only minimized or totally hidden, so you can cancel the events system, while they are not necessary (IowWindowState.THUMBNAIL, IowWindowState.HIDDEN, and IowWindowState.NORMAL

    My app: Get set - get up!   Get ready for the revolution snooze.

  • GroupDataModel in an active Frame (aka Cover)?

    Hey guys,.

    I have an active frame for my application that uses a simple ActiveFrame class (derived from examples on the ' net).  He received an ImageView and a label.  in my main.qml I connect the signal of thumbnail() to an onThumbnail() function and send the text to the ActiveFrame class to update the label by a Q_INVOKABLE update() method.   Everything works beautifully.

    I would replace the label with a ListItemView that is attached to a GroupDataModel in my main class (a class of client Manager 'work').

    How can I go on the passage of the GroupDataModel to the SceneCover?

    the job manager and the scene covers both are exposed to QML via setContextProperty.

    Can I put a GroupDataModel as a property on my SceneCover and set it with a Set accessor method?

    is there a better way to do it?

    EDIT: update, I tried simply adding a ListItemView to the SceneCover.qml page and some properties Label.text of binding to the property of the presentation object workManager representing the GroupDataModel, but the ListItemView on the SceneCover is empty.

    Thank you!

    J

    OK, solved it myself.

    First of all, in the applicationui.cpp file, I put the parent to my WorkManager object and the SceneCover object:

        // Create a WorkManager
        WorkManager * workManager = new WorkManager(this);
        qml->setContextProperty("workManager", workManager);
    
        // Active Frame
        ActiveFrame * activeFrame = new ActiveFrame(this);
        Application::instance()->setCover(activeFrame);
        qml->setContextProperty("activeFrame", activeFrame);
    

    Then, in the constructor for the class ActiveFrame, I find the WorkManager and define a context property.

        qDebug() << "ActiveFrame;:ActiveFrame(), my parent is " << parent;
        wm = parent->findChild("myWorkManager");    QmlDocument *qml = QmlDocument::create("asset:///SceneCover.qml")
                .parent(parent);
        Container *mainContainer = qml->createRootObject();
        setContent(mainContainer);    qml->setContextProperty("myWorkMgr", wm);
    

    After having done that, I can access properties, in particular, the GroupDataModel property of the WorkManager.

    not sure if it's the "right" way to do it, but it seems to work reliably.

    see you soon,

    J

  • Dotted line around the picture frame in the mode of statement of assets.

    In my state the active, I have the button set to open in a new window once above, on which it does. But when I go back to the page, there is a dotted line around the picture frame that doesn't go away. Any help would be greatly appreciated!

    dotted line.png

    Hello

    I believe that you use Firefox to view the site, as this happens only on firefox.

    This is a known problem on their end the selection to the item page remains when we go back to the page.

    Details can be found on this link:

    https://developer.Mozilla.org/en-us/docs/tools/Page_Inspector

    where it is mentioned that they would be taking off this Firefox 29 go.

    Muse we cannot control this, because it is a specific selection of the browser function.

    Thank you

    Sanjit

  • Delete the Enter frame event

    IM on frame 3... I added my name to the Tumba.as class on the timeline... Tumba.as's EnterFrame event with name gameLoop...

    When I go to the next section... I want the event enter frame of the Tumba.as namely gameLoop to remove or perhaps removed the class that I added on frame 3 on the chronology of cause I want only the Tumba.as to be added on the 3 frame only... but remove the gameLoop is correct... How?

    If you assigned an ENTER_FRAME event listener and remove when you want more be active [removeEventListener()]

  • change the color of text blocks only the active layer

    Well my script to change the color of the text frame changes the color of all the blocks of text hidden or not.

    I need to change only the visible text blocks.

    If (app.documents.length > 0) {}

    newCMYKColor = new CMYKColor();

    newCMYKColor.black = 0;

    newCMYKColor.cyan = 0;

    newCMYKColor.magenta = 0;

    newCMYKColor.yellow = 0;

    for (i = 0; i < app.activeDocument.textFrames.length; i ++) {}

    textArtRange = app.activeDocument.textFrames [i] .textRange;

    textArtRange.characterAttributes.fillColor = newCMYKColor;

    }

    }

    Any ideas on how the way only change the color of the text on the active layer blocks? In the final script I want to hide all other layers so if it could be done by a visible attribute more easily that would work just as well.

    Thank you

    Duane Leach

    Hello

    It will work for you?  Have not tested much beyond text blocks in groups and those who are just stand-alone on the layer.

    If (app.documents.length > 0) {}

    var thisDoc = app.activeDocument;

    newCMYKColor = new CMYKColor();

    newCMYKColor.black = 00;

    newCMYKColor.cyan = 40;

    newCMYKColor.magenta = 50;

    newCMYKColor.yellow = 50;

    Need to retrieve blocks of text within the groups on the layer.

    var artSel = thisDoc.activeLayer.groupItems;

    for (i = 0; i<>

    If (artSel [i] .hidden == false) {}

    var text = .textFrames artSel [i];

    for (j = 0; j<>

    text [j].textRange.characterAttributes.fillColor = newCMYKColor;

    }

    }

    End to change the rest of the outside groups text boxes.

    var textArtRange = app.activeDocument.activeLayer.textFrames;

    for (k = 0; k<>

    If (textArtRange [k] .hidden is false)

    textArtRange [k].textRange.characterAttributes.fillColor = newCMYKColor

    }

    on the other

    Alert ("it is not any open documents to change...");

Maybe you are looking for

  • Tecra M3 - when the motorized screen is completely black

    Hi all I really need help with this one!I plugged my tour through an S-video to a flat screen and watched a movie and throughout the film, everything worked very well. I stopped regular and normal. Went home and it start and started regularly and I g

  • Resize the Checkbox control to the Center

    I am trying to create a typedef of checkbox corresponding to a checkbox system at the center of a resizable rectangle. At the moment I have a flat box aligned on the box, but when I resize the control, the box remains in the same place. How can I get

  • transfer to iTunes?

    Hello I recently sold one of my old notebooks to a friend: a Toshiba Satellite running Vista Home, I had iTunes on it, but he did remove it from the hard drive.  My friend has downloaded iTunes on the computer, but iTunes won't let him connect to it.

  • change the screen?

    Developers, I am starting to develop blackberry. so I can't change screen with argument. Please developers

  • BlackBerry smartphone address book transfer

    Help!  I just upgraded from a Curve 8310 to a new Curve 9360, but my contacts has not been transferred to the new device.  When I went on my PC to transfer my last 8310 backup (.ipd file), the computer has more freedom to open this file.  How can I g