BB10 listen swype_down

Hello!

I had a playbook application, where I listened to the SWYPE_DOWN event, to call the menu. I see on my alpha dev B, that there is always a menu appearing on swype_down, e.g. in the calendar.

How can I listen to it?

The Playbook, I used QNXApplication.qnxApplication.addEventListener (QNXApplicationEvent.SWIPE_DOWN, swipeDown);

Thank you
Gabor

Are you including the DONKEY device, have you checked the option include properies of the project library path?

Tags: BlackBerry Developers

Similar Questions

  • Email listening to BB10

    Hello

    This forum is very useful for me.

    Can someone tell me if we can send and receive emails using the BB10 API as well can we have any API that helps us to listen to incoming emails?

    Thank you and best regards,

    Shubhangi

    You can read about it for yourself, rather than just take Pumano Word for her. ;-)

    http://devBlog.BlackBerry.com/2012/08/flight-arrival-boards/

  • Is it possible to listen to the exit app event in webworks?

    Dear all,

    Is it possible to listen to the exit app event in webworks?

    What I would do is:

    Displays a warning message (told that notification feature will be disabled) to the user when they attempt to close the application.

    I saw resume, pause events in the document here: https://developer.blackberry.com/html5/apis/v2_0/blackberry.app.html

    And look for exit the event on playbook, bbos: blackberry. app.event. onExit )

    But found no output Earphone for BB10.

    Could you please provide any valuable resource or information about it?

    Thanks for the help.

    Unfortunately the platform as a whole does not have to "suspend" the process of application endpoints. Even if we hung out at the event, the web runtime is being demolished before that you could do something meaningful.

    Sorry I don't have better news.

  • Geolocation is available for BB10?

    Hello

    I am an experienced developer of BB, which is now moving to BB10. I attended a BBJam event last month, and I had the chance to win a BB Dev Alpha device. I'm working on a Native C++ Cascades application that reads GPS information. I used the following code to get the geolocation data, but I never receive any event. The code remains on bps_get_event (this code blocks, so as long as it receives no events there). Note that I tested my application on the actual device (Dev Alpha):

    void GpsApp::listenForGpsEvents() {
        int rc = BPS_FAILURE;
    
        // Initialize access to the BPS system
        rc = bps_initialize();
        if (rc)
            return;
    
        // Register to receive GPS Events - if we can't then we can't proceed any further
        rc = geolocation_request_events(0);
        if (rc)
            bps_shutdown();
    
        // Get geolocation events once a second, which is the most often that they
        geolocation_set_period(1);
    
        // Pointer to the event that will be dequeued
        bps_event_t *event = NULL;
    
        // Infinite loop for the moment
        while(1) {
            // Blocking wait ( -1 ) for BPS events (including geolocation events)
            rc = bps_get_event(&event, -1);
    
            if (!rc) {
                if (bps_event_get_domain(event) == geolocation_get_domain()) {
                    // Handle GPS event
                    handleGpsEvent(event);
                }
            }
        }
    
        // Stop geolocation events
        geolocation_stop_events(0);
    
        // Close access to the BPS system
        bps_shutdown();
    }
    

    Also note that I added the code to listen for events of accelerometer as well and it works great. Do you know if geolocation is available on the current version of the NDK or should I wait the next version of NDK?

    Thank you

    Hello, I wanted to make you aware that there is a problem recorded in the Jira system on geolocation problem that you are experiencing.

    Compared to the Playbook, the alpha BB10 device is much slower and less sensitive to the reading of the events of geolocation. You can comment or vote on the matter to

    https://www.BlackBerry.com/jira/browse/BBTEN-8

    See you soon

    Swann

  • How to listen to TEXT messages in the air?

    How to listen to TEXT messages in the air? Thank you!

    There is not much available of BB10 exposed to the AIR. If the NDK allows you create a DONKEY for her.

  • Custom AlternatingCellRenderer BB10 Air 2.0 sample does not work

    The following example of the custom AlternatingCellRenderer class of the BB10 Air 2.0 Documentation throws the following error in Flash Builder 4.6:

    The path location type Resource Description
    1144: interface holder get method in namespace qnx.fuse.ui.listClasses:ICellRenderer is implemented with an incompatible signature in class MyCustomCellRenderer.    MyCustomCellRenderer.as

    Example of documentation: https://developer.blackberry.com/air/beta/apis/qnx/fuse/ui/listClasses/AlternatingCellRenderer.html

    Example Code:

    package
    {
        import flash.events.Event;
        import flash.events.MouseEvent;
    
        import qnx.fuse.ui.buttons.CheckBox;
        import qnx.fuse.ui.listClasses.AlternatingCellRenderer;
    
        public class MyCustomCellRenderer extends AlternatingCellRenderer
        {
    
            private var myCB:CheckBox;
    
            public function MyCustomCellRenderer()
            {
            }
    
            override protected function init():void
            {
                super.init();
    
                myCB = new CheckBox();
                myCB.x = 250;
                myCB.y = 10;
                this.addChild(myCB);
    
                myCB.addEventListener( MouseEvent.CLICK, onClick );
                //add this listener in order to block the mouse down event from the list
                //see the onMouseDown method to see how to stop the event propagation
                myCB.addEventListener( MouseEvent.MOUSE_DOWN, onMouseDown);
            }
    
            //this will prevent the cell from being selected when the button is clicked down
            private function onMouseDown(event:MouseEvent):void
            {
                event.stopImmediatePropagation();
            }
    
            private function onClick(event:MouseEvent):void
            {
                dispatchEvent( new Event( Event.SELECT, true, true ) );
            }
        }
    }
    

    I already went through this guide and did all this. Here are the screenshots of my configuration.

  • Automatic resizing on the PlayBook, but not BB10 EditText. Why?

    I have an EditText that fills the width of the screen. The right is a button which shows the a side panel. When the sidebar is displayed, the EditText resizesso Panel and the EditText are side by side. It works on tablets, but when I test it on the phone the EditText only takes up 1/2 of the screen and does not resize.

    http://i.stack.imgur.com/PMgoj.PNG

    http://i.stack.imgur.com/xiFTx.PNG

    hand. XML

    
    http://schemas.android.com/apk/res/android"
        android:id="@+id/mainlayout"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="right" >
    
        
    
        
    
        
    
            

    The listener in main.java, who manages the Panel button

    final Button btn = (Button) findViewById(R.id.show_popup_button);
            btn.setOnClickListener(new View.OnClickListener() {
    
                @Override
                public void onClick(View arg0) {
                    if (key == 0) {
                        key = 1;
                        popup.setVisibility(View.VISIBLE);
                        btn.setBackgroundResource(R.drawable.upload_button);
                    } else if (key == 1) {
                        key = 0;
                        popup.setVisibility(View.GONE);
                        //et.setWidth(1024);
                        btn.setBackgroundResource(R.drawable.download_button);
                    }
                }
            });
    

    Why isn't my automatic resizing on BB10 EditText?

    I have it. Gravity on my main layout was fixed to the left. Just had to change to.

  • How can I implement two tap double finger in bb10?

    Hello everyone.

    For my application, I want to implement two JJUJ tap double gesture. Bb10 I found that there is a support of two fingers tap.

    Can someone please suggest me how to use it, or what will be the procedure of implementation?

    Thank you.

    After a bit of digging around, I found This example of handling multitouch on GitHub. Have not tested so no idea if it works with the current SDK. briefly looking at the code, I don't think there's a manager built tap, but you could listen to a sequence of Touch Touch Release Release Touch release Touch released in quick succession.

  • onPause on BB10

    What does really mean by this event? Apparently not catching anything, even if I add the listener to it.

    The Ripple, there is an option to trigger an onPause event and it works well, but does nothing on a real device.

    What action triggers onPause event on BB10?

    I don't think we're going to be broke up the forums. There is fragmentation points, but the vast majority of subjects is all understandable to developers WebWorks.

    You can do a lot more games on the Dev Alpha today, although the WebWorks extensions are limited. If you build with waterfalls, the only way to see it on the device is with a Dev Alpha. As developers WebWorks, we can use a PlayBook for most all apps and releasing them on the market now, while tinker us with the Alpha of Dev and try the new APIs, as they are released.

    The next version of the SDK WebWorks for BB10 will add some new features that will really increase the value of having a WebWorks development.

  • SMS listening by using Cascades SmsTransport

    I'm having some trouble with the SmsTransport api. The listeners for phone and email are simple and work great, but when I try and listen for sms I get this runtime warning:
    
    Warning: Object::connect: No such signal bb::pim::message::SmsTransport::messageReceived(unsigned int, const
    bb::pim::message::Message&) in ../src/App.cpp:58
    
    and this is the code that is the problem:
    
         mSmsTransport->registerPort(0);
         connect(mSmsTransport, SIGNAL(messageReceived(unsigned int, const bb::pim::message::Message&)), SLOT(handleSms(unsigned int, const bb::pim::message::Message&)));
    
    Maybe the method signature has changed from what is listed here?
    https://developer.blackberry.com/cascades/reference/bb__pim__message__smstransport.html
    
    Also related to this.. is 0 the correct port to register on to listen for SMS's? It worked this way on Java BB but I'm not sure about BB10.
    

    Patch the SDK to C:\devel\bbndk\target_10_0_9_2318\qnx6\usr\include\bb\pim\message\MessageUpdate.hpp and adding the line to the bottom of the file solves the problem. Not sure how it works for you, unless you have this line.

    Q_DECLARE_METATYPE (bb:im::message:MessageUpdate)

  • Stop scrolling on BB10 - Webworks + BBui.js

    BB10 Webworks + BBui.js / DevAlpha

    I am developing a game based on key events.

    While the size of my screen is set to meet devAlpha in the landscape (1280 X 760: height less 8px), the screen scrolls up/down when I 'touch and move' a finger on devAlpha. I want to avoid this.

    I've read several discussions on this (including Adam) and also read some comments of examples, so I tried the 'solutions' without success.

    -Definition of meta display window (in the index file): no specified height.

    
    

    -Script "Inhibitor" (attempt #1: firstly the script "as-is" in my script main screen push".) JS file")

    /* ---------------
     * disable scroll
     * ---------------*/
            preventMove = function(evt) {
               evt.preventDefault();
               window.scroll(0, 0);
               return false;
            };
            document.addEventListener('touchmove', preventMove, false);
    

    -Inhibitory script (try #2: function in my ".") JS file"but the event listener added to the event"ondomready"within the bb.init () function in the index page.

    in my JS file (no event listener is added)

    /* ---------------
     * disable scroll
     * ---------------*/
            preventMove = function(evt) {
               evt.preventDefault();
               window.scroll(0, 0);
               return false;
            };
    

    in the bb.init (); event listener added when the dom is ready (my main screen is 'House')

                   // Fires "after" styling is applied and "after" the screen is inserted in the DOM
                    ondomready : function(element, id) {
                        if (id == 'dataOnTheFly') {
                            dataOnTheFly_initialLoad(element);
                        } else if (id== 'home') {
                           document.addEventListener('touchmove', preventMove, false);
                        }
                    }
    

    (I admit I'm probably lost in the DOM....)

    -Finally, since my application uses divs triggering a function on the 'ontouchstart' event, I added the 'event' parameter in the function call and added a 'preventDefault()' as the first line of the script.

    An example of the div on my page http://www.sigling.is/IMO/imofishing/home.htm

    
    

    thumbsensor script:

        thumbSensor = function(place,state,evt) {        currLR = place;        // what pad/dock        window[place] = state;        // what's its value
    
            /* ------------------------------------------         *  thumbs dock / started / thumb ITA states          * ------------------------------------------ */            if(evt = 'ontouchstart'){ // prevent scrolling                alert('onTS'); // => Testing, and Yes, it is displayed right//                evt.preventDefault();                window.scroll(0,0);                return(false);                        }
    [...]
    }
    

    When I check the console of Chrome using the last option, that's what I get (aside: why the webworks ready event is triggered so many times - about 10?):

    Now, I think either I missed something big (probably) or the right way to do it or...
    Can anyone help?

    If you need to replace the touch events in bbUI you have to turn screen by using effects of scrolling data-bb-scroll-effect = 'off' on the part of the screen: https://github.com/blackberry/bbUI.js/wiki/Screens

    Currently iScroll is used to scroll through effects and will contact entries for the scrolling of a screen.

  • Listeners in c / c ++ development NDK for BB10

    Hi all

    I would like to know if there is the API for capture/listening in BB10 events, as if a call is made / received.

    my application should listen and respond.

    Thanks in advance.

    Kind regards

    Kavita

    Hello

    Interacting with call or sms events is not currently supported on BB10;

    To access the documentation for all the features currently supported, please see below:
    https://developer.BlackBerry.com/Cascades/documentation

    Kind regards

    Martin

  • Get on touch event BB10 Simulator

    IM studying BB10 Webworks. For exl I have this:











    How can I get the event when I touch a div? It's ok when working with web by onclick but with Simulator, I do not know how to get the key events. Can someone help out me, tks so much

    Here is an example page that allows to understand how touch events:

    http://BlackBerry.github.IO/WebWorks-samples/kitchenSink/HTML/browser/touch.html

    On the BlackBerry 10 Simulator, you should expect to see the TouchStart, TouchMove events and touchstart SHOOTING when you interact with the content of the page with the mouse (Note: will also fire the click event).  Make sure that you are listening and managing events of button correctly.

  • How can I listen to an album in order?

    I can't find a way to turn off shuffle when you listen to an album.  I feel pretty stupid... I must be missing something * really * obvious.

    in OS X

    Shuffle on

    Shuffle off

    in OS 9.3.5 is this

  • I can't download any music for listening offline more

    All of a sudden, I can't download any music for offline listening more.

    Icon to download is available but when clicking top is transformed into a turning circle around and it stays like that... days.

    Do I did wrong?

    Thanks for the comments,

    Peter

    Hi Peter Meylaerts.

    Welcome to the communities of Apple Support!

    We understand that you are no longer able to download music in Apple's music for the way you expect listen offline. We have a few different troubleshooting suggestions to suggest this behavior.

    First, we recommend that you close the application completely music. The following article explains this process:

    Force an application to close on your iPhone, iPad or iPod touch - Apple Support

    The music has been closed, restart your iPhone:

    Restart your iPhone, iPad or iPod touch - Apple Support

    If the problem persists, let us know if you experience this problem when you are connected to the Wi - Fi and cell phone. Have you noticed other issues with your iPhone on the network?

    See you soon!

Maybe you are looking for