WebWorks doubt

Hello

I'm new to the Blackberry development. I need to develop an application using jquerymobile (webworks). In my application, I need to constantly update the map using gps although exits app., it is therefore possible to run the application in the background, so that I can constantly update the map.

Inside your content item, you can specify the rim: background. Just like that:

"index.html">

Tags: BlackBerry Developers

Similar Questions

  • BB10 Webworks doubts

    I'm working on enforcement BB10 Webworks. I have following doubts

    1. How can I see the log console or any error/exception
    2. How can I work with the Web Inspector? I lived with this URL http://developer.blackberry.com/html5/documentation/web_inspector_overview_1553586_11.html

    But unable to see anything on

    http://169.254.0.1:1337 / inspectorBB.html? page = 0

    Use the function 'console.log ().

    and to use Web inspector, you have to be in the same network and use the-d parameter when packing.

  • How to use multitouch in Webworks app?

    Hello!

    After my first problems in the development of the app for BB in Webworks I still made my app. I have to use multitouch now, but I have no idea how. I did find samples with multitouch. I found only this: http://developer.blackberry.com/html5/apis/touchevent.html#targetTouches but I don't know how to use this function. Can you help me?

    PS. Sorry for my bad English

    And that's that

    The following example is an implementation of filling of touch

    I decided to leave the bind to the mouse in that it is probably useful to others

    It is a living example of an ePub with blow gettures reader and touch

    The code is a little complex, so I will answer any other than Gregs Qs

    Basically what this did that target an iFrame and control

    Anywhere you see a reference to my target frame - ignore it and replace with what you want to do

    The hardest things to understand for the novice, here are the angle and the time (both are included)

    Without much explain this sets @ high tell the manager what to do

    A call to bindtouch (target) does what it says but is native, you must pass the name of the div tag

    A binding triggers all important events

    Angles and timing are still developing

    Timing is crucial if you need one no doubt

    Angle is optional and depends on how the finger is moved, but requires a JS call very expensive Math.atan2 (point1, point2)

    Basically Angle you indicate where you moved your finger after the first touch so you can probably kill such things

    The County touch gets the correct contact and doing what it takes with it based on defines it

    Look - I told you it was very complicated

    Oh - bind it to the mouse allows you to transfer the call to a mouse event - I thought it might be useful for other readers

    The target an iFrmae is also very convenient as it is scrolling

    I leave you for that suit your needs

    function bindtouch (target) {}
    var TOUCH_TAP_DIST = 30;
    var TOUCH_TAP_TIME = 150;
    var TOUCH_DRAG_DIST = 50;
    var TOUCH_DRAG_TIME = 500;
    var TOUCH_DRAG_VELOCITY = 50;
    var TOUCH_SWIPE_DIST = 50;
    var TOUCH_SWIPE_TIME = 500;
    var TOUCH_SWIPE_VELOCITY = 75;

    var SWIPE_NONE = 0;
    var SWIPE_RIGHT = 1;
    var SWIPE_UP = 2;
    var SWIPE_LEFT = 4;
    var SWIPE_DOWN = 8;

    var _TOUCH_DRAG_VELOCITY = TOUCH_DRAG_VELOCITY * TOUCH_DRAG_VELOCITY;
        
    var touch = [];

    var el = target;

    function squangle (p1, p2) {}
    ((p2.y-p1.y) return math.atan2, (p2.x - p1.x));
    }

    el.addEventListener ('touchend', Function {}
    e.preventDefault ();
    var TB = e.changedTouches;
    for (var i = 0; i)
    CTI var is ct [i] .identificateur;.
    CTO var = ct [i];
    {if (CTO. ClientX)}
    Touch [sic] = {sx: cto.clientX,}
    SY: cto.clientY,
    TX: cto.clientX,
    Ty: cto.clientY,
    BX: cto.clientX,
    by: cto.clientY,
    PV: 0,
    {TM: e.timeStamp};
    var id = "#tch" + ct;
                    
    evt var = document.createEvent ("MouseEvents");
    evt.initMouseEvent ("mousedown", true, true, window,
    0, cto.screenX, cto.screenY,.
    cto.clientX, cto.clientY, false, false, false, false, 0, null);
    e.srcElement.dispatchEvent (evt);
    }
    }
    });

    el.addEventListener ('touchmove', Function {}
    e.preventDefault ();
    var TB = e.changedTouches;
    for (var i = 0; i)
    CTO var = ct [i];
    TCO var = touch [cto.identifier];
    var ms = e.timeStamp - tco.tm;
    {if (CTO. ClientX)}
    TCO. TX = cto.clientX;
    TCO. Ty = cto.clientY;
    TCO. PV = Math.sqrt (((tco.sx-tco.tx) * (tco.sx - tco.tx)))
    + ((tco.sy-tco.ty) * (tco.sy - tco.ty)));
    if(e.touches.Length == 2) {}
    dreadful var = e.touches.length;
    }
    if(e.touches.Length == 1) {}
    var dx = Math.abs(tco.bx-tco.sx);
    var dy = Math.abs(tco.by-tco.sy);

    If (tco.pv< _touch_drag_velocity)="">
    If ((smode == SCALE_ZOOM) & (fsize > 1.00)) {}
    $(frames['appframe'].document).scrollLeft ($(frames['appframe'].document).scrollLeft () + (tco.sx - tco.tx));
    //                            }
    EB var = $(frames['appframe'].document);
    St var = eb.scrollTop ();
    $(frames['appframe'].document).scrollTop (st + (tco.sy - tco.ty));
    .SX Touch [i] = e.touches [i] .clientX;
    .Sy Touch [i] = e.touches [i] .clientY;
    }
    }
                    
    TCO. SX = cto.clientX;
    TCO. Sy = cto.clientY;
    }
    }
    });
                
    el.addEventListener ('touchstart', Function {}
    e.preventDefault ();
    var TB = e.changedTouches;
    for (var i = 0; i)
    CTO var = ct [i];
    TCO var = touch [cto.identifier];
    var ms = e.timeStamp - tco.tm;
    var dx = Math.abs(tco.bx-tco.sx);
    var dy = Math.abs(tco.by-tco.sy);
    evt var = document.createEvent ("MouseEvents");

    If ((dx< touch_tap_dist)="" &&="" (dy="">< touch_tap_dist)="" &&="" (ms=""><= touch_tap_time))="">
    evt.initMouseEvent ("click", true, true, window,
    0, tco.sx, tco.sy, tco.sx, tco.sy, false, false, false, false, 0, null);
    e.srcElement.dispatchEvent (evt);
    }
    ElseIf (((dx > TOUCH_SWIPE_DIST) |)) (dy > TOUCH_SWIPE_DIST)) & (Mrs.<= touch_swipe_time))="">
    if(DX > TOUCH_SWIPE_DIST) {}
    If (TCO. BX > TCO. SX) {}
    swipex = SWIPE_RIGHT;
    }
    else {}
    swipex = SWIPE_LEFT;
    }
    }
    else {}
    swipex = SWIPE_NONE;
    }
                        
    if(dy > TOUCH_SWIPE_DIST) {}
    if(TCO.by > TCO.) SY) {}
    swipey = SWIPE_UP;
    }
    else {}
    swipey = SWIPE_DOWN;
    }
    }
    else {}
    swipey = SWIPE_NONE;
    }
                        
    If ((swipey == SWIPE_NONE) & (swipex == SWIPE_RIGHT))
    {
    switchPage (1);
    }
    If ((swipey == SWIPE_NONE) & (swipex == SWIPE_LEFT))
    {
    switchPage(-1);
    }

    evt.initMouseEvent ("mouseup", true, true, window,
    0, tco.sx, tco.sy, tco.sx, tco.sy, false, false, false, false, 0, null);
    e.srcElement.dispatchEvent (evt);
    }
    else {}
    evt.initMouseEvent ("mouseup", true, true, window,
    0, tco.sx, tco.sy, tco.sx, tco.sy, false, false, false, false, 0, null);
    }

    }
    });
    }

  • Peux I installed iOS 10 from my iPad to my iPhone6 or my PowerbookPro? Or 10 doesn't automatically do that? Doubt it!

    Peux I installed iOS 10 from my iPad to my iPhone6 or my PowerbookPro?

    Or 10 doesn't automatically do that?

    Doubt it!

    If you're wondering how to install iOS 10, go to settings on your iPhone. Then click on general, then software update. Wait to check out the update, and then click Download and install at the bottom of the iOS 10 pop up.

  • How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    As far as I KNOW, the serial number of the MacBook does not have the serial number of the processor.

  • I have a doubt... the two Firefox syn account and firefox support account are the same or not

    I have a doubt... Firefox and firefox syn account for both are the same or not change support

    Hello shivarajnaidu, not for the moment these two accounts are completely separate, although it is planned to link the two of them on behalf of persona in the foreseeable future: https://login.persona.org/about

  • I got a message saying my iCloud id has expired. The text has a link and asks me to enter bank details. Is this doubtful

    Ive got a text saying my iCloud ID has expired and its got a link and asks me to enter bank details. Is it doubtful?

    Do not reply or reply!  Sounds like a phishing attempt.

    http://www.Apple.com/legal/more-resources/phishing/

    Identify the fraudulent 'phishing' - Apple Support e-mail

  • I'm ready to buy a Apple Watch in this week... so my doubt

    I'm ready to buy a Apple Watch in this week... so my doubt and fear is if Apple Watch 2 starting soon can exchange with my product? Anyone hv any idea or much knowledge about the launch d & all please help me with your valuable answers.... plz

    < published by host >

    Apple has made no announcement about Apple Watch 2. Speculation is forbidden on the forum, so without an official announcement, nobody here could say. Given that nothing has been said, I doubt that you would benefit from an exchange of your product. They do not trade for new devices in any case for the watch. iPhones and iPads can be returned for recycling and a store credit, but that's it.

  • Doubts on my new book

    Hi all:

    I bought a new book a few days ago. I am really satisfied with this wonderful machine. After using it for a few days, I have two doubts:

    (1) the fan in my booklet is most of the time. Is this normal?
    (2) what are the specifications of memory? I want to upgrade the RAM in my machine, but I have no reference manuals for do I have to use the memory modules.

    Thank you very much

    In case it helps to... My experience with my U100 is the fan is certainly * not * "almost all the time." For example, I went about 40 minutes before to check emails, news, etc., using the power of the battery and the default 'normal' power setting, and the fan is not switched on once. (Room temperature is 23 degrees c).

    If I use it outside in the Sun very as the case becomes hot to the touch, the fan tends to come regularly.

    If it runs on my desk from the power outlet (using the parameter 'high power' by default) and I do the work of the processor hard as when you make a disk backup or editing photos, then yes the fan are quite light. But it's just like most laptops.

    If she does everything what * and * the sun shines directly on it as well, then the fan comes on saying maybe 50% or more of the time. (A silver case would have reduced the effect of solar heating - but look very smart matte black ;-).)

    How does this compare with your experience?

    To the subject of RAM, yours came with 512 MB like mine? (I guess this would be the module PA3312U - 2M 51, as described on this site - 512 MB memory PC2700 DDR SODIMM (333 MHz)).

    Before I bought the machine the provider told me that he has that one slot RAM and that in order to upgrade the memory, I would need to take the existing 512 MB and replace it with a 1 GB module. But I have not confirmed which and there is no mention of a module of 1 GB on this site. The 512 MB so far seems sufficient, but I would be interested to know if you are able to increase the RAM on your U100.

    Kind regards
    David Tong.

    PS. It occurs to me that if you feel the need to increase the RAM, then maybe you do work pretty hard machine, in this case you expect the fan to be busy.

  • Table - doubt

    Hello. I have a job to do which is: we have to create a table of random numbers () and the user gives a number he chooses. We need to create a new table with all table at random numbers that are larger than the number of the user.

    I did this: http://img291.imageshack.us/my.php?image=helpaipeop3.jpg

    My question is: How can I create a new table with all the numbers that are larger than the number?

    In the future, please attach images directly to your message instead of placing them on ImageShack so people can access it directly.

    To answer your question: you're not understanding dataflow. Since there is that no dependencies in the data between the 2 loops then the 2 loops will be different at the same time. However, the background loop runs with empty bays are filled until the top loop ends. Your incorrect use of local variables is a mistake and the number without a doubt one of the reasons why we see programmes does not properly. Please make sure that sets are filled before you try to use them. That said, is there no need 2 loops first. The comparison just there where you generate the random number. Use a shift register to accumulate a table. If the random number is larger than the control, and then add it to the table. If this isn't the case, pass through. Use a box structure. Like this:

    To learn more about LabVIEW, it is recommended that you go through the tutorials and look over the material in tutorials the NI Developer Zone Learning Center , which provides links to other materials and other. You can also take a course online for free.

  • Doubts on Xperia Z3 double Downgrade, enter recovery

    Hi, I upgraded my dual Z3 using PC companian and I do worse than worse battery life that lasts hardly 8 hours with an average of 2 hours on the screen using only a SIM... Don't recommend me to cut my mobile data live wallpaper etc... I don't need two days back up like advertising, I just need at least a day...

    And my question is can it downgrade to KitKat without rooting my phone? When I used the Sony Emma software to connect my phone with PC, it showed that your phone is locked and you need to unlock your phone to activate the features...

    And other doubt is how to reset recovery mode my phone? I tried with a large number of key combinations and all are allowed in normal startup upward...

    And tell me any othere ways to regain my battery upward without decommissioning if there is place (even though I don't think so)

    I appreciate your valuable suggestions... Thank you

    Yes, you can downgrade without rooting see here for a guide on how to create your own firmware and how manually Flash your phone, but you may need to find the firmware from another country if it is available or search XDA

    Said EMMA instructions Sony what - for use with compatible phone and only for phones that have a Bootloader unlocked

    Finally there is no magic button combo to go into recovery mode as Xperia devices do not have unless you have rooted and installed a custom recovery

  • Contacted by rep that notifies computer was in jeopardy. Paid them and now have doubts

    I was contacted by a person representing so-called Windows, which highlight the problems that my computer was advising me of - disk etc. overhead. It seems legitimate and I allowed him access to correct and update my computer. There are 3 levels of coverage for this service, I chose the lowest coverage of 6 months at a cost of £89. After reflection, I started to have doubts, I cancelled my credit card (after that the payment had been made), but I'm worried of what he did or could do while he had access to the machine? Anyone had the same experience and can offer advice?

    The company was Windows Tech Solutions, email * address email is removed from the privacy *

    Web

    Society American and British phone numbers

    Unfortunately, very common. See:

    http://www.Microsoft.com/en-GB/security/online-privacy/avoid-phone-scams.aspx

    http://www.guardian.co.UK/technology/2011/Sep/22/Microsoft-drops-partner-accused-scam

    Most of them just seems to perform activities without value as support allows you to install free software like Malwarebytes.

    However, as he had access to this you should consider that it compromised.

  • Asking for feedback on the appellant alleged microsoft - doubtful sound software download

    I received a phone call from someone claiming to be ask to speak to my husband re feedback on a free software from microsoft that he downloaded Microsoft.  My husband wasn't home. The guy would not leave a call back number. My husband says that he has not downloaded anything! This seems doubtful - does anyone know what it is? Have they had the info on us, they knew the name of my husband.

    Hello

    It's a SCAM

    they want or money on your part for programs without value or make an identity theft on you to get even more money and get your internet banking passwords and credit card information, you get allows you to download the software to 'fix' or 'test' for your computer

    read this:

    http://www.Microsoft.com/security/online-privacy/msName.aspx

    Microsoft has none of the unsolicited telephone calls to help you fix your computer

    In this type of scam cybercriminals are calling you and claim to be of Support technique Microsoft. They offer help with your computer problems. Once scammers have earned your trust, they try to steal and damage your computer with malicious software, including viruses and spyware.

    Although the law enforcement can trace phone numbers, often authors use pay telephones, disposable cell phones or stolen cellular phone numbers. Better avoid fooling themselves rather than try to repair the damage afterwards.

    Treat all unsolicited sceptically telephone calls. Don't provide personal information.

    If you receive an unsolicited call from someone who claims to be from Technical Support Microsoft, hang up. We do not have such calls.

    If you think you might be a victim of fraud, you can report it. For more information, see: what to do if you think you have been scammed.

  • WebWorks command not defined windows cmd

    I try to display the webworks on browser project, when the project working directory when I run webworks serve I got the following:

    'WebWorks' is not recognized as an internal or external command,
    operable program or batch file.
    

    Is it because of the installation error?

    BB WW2 SDK install log:

    Copy File:                Destination: C:\Users\Student\BB10 WebWorks SDK 2.2.0.15\webworks-ui\bin\shortcut_256.ico
                              Status: SUCCESSFUL
    
    Set Environment Variable: WEBWORKS_HOME = C:\Users\Student\BB10 WebWorks SDK 2.2.0.15
                              Status: WARNING
                              Additional Notes: WARNING - Could not get UNIX shell name for environtment editing!
    
    Set Environment Variable: PATH = %WEBWORKS_HOME%
                              Status: WARNING
                              Additional Notes: WARNING - Could not get UNIX shell name for environtment editing!
    
    Set Environment Variable: PATH = %WEBWORKS_HOME%\cordova-blackberry\bin\dependencies\bb-tools\bin
                              Status: WARNING
                              Additional Notes: WARNING - Could not get UNIX shell name for environtment editing!
    
    Refresh Windows Environment:
                              Status: SUCCESSFUL
    
    Execute Script/Batch file:   webworks
                              Status: ERROR
                              Additional Notes: ERROR - Error while attempting to execute the installation script
    
    Install Directory:        C:\Users\Student\Desktop\
                              Status: SUCCESSFUL
                              Additional Notes: NOTE - Directory already existed
    
    Create Link:              C:\Users\Student\Desktop\BlackBerry WebWorks 2.2.0.15
                              Status: ERROR
                              Additional Notes: ERROR - Unable to Create Shortcut
    

    I managed to solve this problem by following these steps:

    1. Open cmd.
    2. Run the cmd: echo %PATH% (to see the current status)
    3. Run the cmd: PATH = % PATH %; C:\Users\Student\BB10 WebWorks SDK 2.2.0.15
    4. Run the cmd: echo %PATH% (to see views)
    C:\Users\Student\WebWorks Projects\Calorie-Counter>webworks
    usage: webworks [--verbose] command [options]
    
    These commands may be used globally:
    
       create               create a new project
       create-headless      create a new project which includes a native headless component
       target               manage devices and simulators
       help                 view usage for all commands
    
    These commands may be used from within a project directory:
    
       build                package app into a BAR file
       run                  build and deploy to a device
       emulate              build and deploy to a simulator
       upgrade              upgrade blackberry10 platform
       plugin               add or remove plugins
       serve                start a webserver to host project assets
    
    See 'webworks help ' for more information on a specific command.
    
  • Abandoned WebWorks?

    Thus abandoned WebWorks or just put development on hold?

    Asking the reason is that the latest version uses obsolete plug-ins and former Cordova style of their designation. This means that update those, to remove the 'old' and install the most recent by using different names. Naturally, thereafter it is not possible to see those who use the software development kit.

    The broken next page's significant regarding this issue:

    https://developer.BlackBerry.com/HTML5/downloads/roadmap/

    There are also other issues, but they are maybe not so relevant to the issue, for the moment.

    Thanks in advance for any sensitive about this reaction.

    There are currently no plans to release an updated SDK WebWorks.

Maybe you are looking for