Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Focus based navigation hangs device

No problem Smiley Happy

 

We are working on making the focus faster.  The issue is that the indexing of the page to determine the bounding rects of the DOM elements is very expensive.  And this is triggered each time the DOM is updated.. yikes...

 

It is a linear performance issue.. the more focusable items the longer it takes to index.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
Posts: 12
Registered: ‎07-05-2011
My Device: curve 8520
My Carrier: edge

Re: Focus based navigation hangs device

Hello,

I have the same problem:

Navigation between the different elements works and they are properly highlighted. Then suddenly after clicking around, the Widget and the device itself totally hangs 

After restarting the device ,I can't open my app. again or I can't find it in Downloads Folder.

Do you hava any idea ?

 

Using BlackBerry Java Plug-in for Eclipse
Version: 1.3.0 

 

WebWorks 2.5.1

Blackberry device: curve 8520 targeting OS 5

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Focus based navigation hangs device

when clicking around, are you calling blackberry.* APIs? if so which APIs are being called? Are you calling your own custom JavaScript extension?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
Posts: 12
Registered: ‎07-05-2011
My Device: curve 8520
My Carrier: edge

Re: Focus based navigation hangs device

[ Edited ]

Hello,

I have just one page index.html and this is the code:

 

    <script type="text/javascript">   

function trapForApplicationExit(){  blackberry.app.event.onExit(handleExit);}
function handleExit(){var answer = confirm("Leave this application?");if (answer)blackberry.app.exit();}
</script>

 

<form action="checkLogin.jsp" method="post"><table dir='rtl' border="0" ><tr><td><img src="http://www.mydomain/logo.jpg"/><br/></td></tr>
<tr><td><p>اسم المستخدم:</p><input type="text" name="username" id="username"/><br/></td></tr>
<tr><td><p>كلمة السر: </p><input type="password" name="password" id="password"/><br/></td></tr>
<tr><td><a dir="rtl" href="forgetPass.html">forgetpassword</a><br/></td></tr>
<tr><td><input align="right" type="submit" name="submit" value="submit" /></td></tr>
<tr><td><input type="button" name="exit" value="exit" onclick="trapForApplicationExit();" /></td></tr>
</table>

</form>

I don't call any extra API.

How could I solve it?

 

 

and this is the config file

<?xml version="1.0" encoding="UTF-8"?><!--  Widget Configuration Reference:    http://docs.blackberry.com/en/developers/deliverables/15274/--><widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.1">  <name>Horytna App</name>  <description>&#xD;      A sample application to report any fraud in the Election.&#xD;  </description>  <author email="dsalah@madarmedia.com">Dina Salah Eldeen</author>  <license href="http://opensource.org/licenses/alphabetical">License copied to Horytna App.</license>  <feature id="blackberry.system" required="true" version="1.0.0.0"/>  <feature id="phonegap" required="true" version="0.9.5.1"/>  <feature id="blackberry.find" required="true" version="1.0.0.0"/>  <feature id="blackberry.identity" required="true" version="1.0.0.0"/>  <feature id="blackberry.pim.Address" required="true" version="1.0.0.0"/>  <feature id="blackberry.pim.Contact" required="true" version="1.0.0.0"/>  <feature id="blackberry.io.file" required="true" version="1.0.0.0"/>  <feature id="blackberry.utils" required="true" version="1.0.0.0"/>  <feature id="blackberry.io.dir" required="true" version="1.0.0.0"/>  <feature id="blackberry.app" required="true" version="1.0.0.0"/>  <feature id="blackberry.app.event" required="true" version="1.0.0.0"/>  <access subdomains="true" uri="file:///store/home"/>  <access subdomains="true" uri="file:///SDCard"/>  <access subdomains="true" uri="http://www.fci.cu.edu.eg/dina/upload.php">    <feature id="blackberry.app.event" required="true" version="1.0.0.0"/>    <feature id="blackberry.app" required="true" version="1.0.0.0"/>  </access>  <access subdomains="true" uri="http://www.fci.cu.edu.eg/dina">    <feature id="blackberry.app.event" required="true" version="1.0.0.0"/>    <feature id="blackberry.app" required="true" version="1.0.0.0"/>  </access>  <access subdomains="true" uri="http://72.167.252.52:8080">    <feature id="blackberry.app" required="true" version="1.0.0.0"/>    <feature id="blackberry.app.event" required="true" version="1.0.0.0"/>  </access>  <icon rim:hover="false" src="resources/icon.png"/>  <icon rim:hover="true" src="resources/icon_hover.png"/>  <content src="index.html"/>  <rim:connection>    <id>TCP_WIFI</id>    <id>MDS</id>    <id>BIS-B</id>    <id>TCP_CELLULAR</id>    <id>WAP2</id>    <id>WAP</id>  </rim:connection>  <rim:loadingScreen foregroundImage="resources/loading_foreground.png" onFirstLaunch="true">    <rim:transitionEffect type="fadeOut"/>  </rim:loadingScreen>  <rim:navigation mode="focus"/></widget>

Contributor
Posts: 12
Registered: ‎07-05-2011
My Device: curve 8520
My Carrier: edge

Re: Focus based navigation hangs device

Hello,

does anyone has a soultion for enable a focus on device with making the application hanging and not responsing?

Contributor
Posts: 12
Registered: ‎07-05-2011
My Device: curve 8520
My Carrier: edge

Re: Focus based navigation hangs device

I have the same problem.

could anyone has the focus based working post steps to do that.?

Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Focus based navigation hangs device

is this "bug" already fixed? I am having the same problem.

Should we use the temporary workaround tneil suggested?

"This deadlock issue does not appear to surface when not using navigation mode capabilities.  It appears that the pointer mode is utilizing a separate thread solution much like the one we will be putting in place for widget navigation. If you temporarily use the default pointer mode until the fix is available you should be able to continue your development without lock-ups."


Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Focus based navigation hangs device

Any ideas?
Contributor
Posts: 34
Registered: ‎07-05-2011
My Device: Various
My Carrier: Generic

Re: Focus based navigation hangs device

[ Edited ]

Hi Tim.

I notice this thread apparenlty ends with a very despondent sounding "Any Ideas?"

 

I throw my plea in with that - I'm having the same issues on OS5.0 phones...

The client is grumpy, volcano's are spewing forth all kinds of horridness, and I'm pretty sure I saw at least one of the Horse Men on my way in to the office today.

 

In short - it's a bad scene, and at this point my only remaining thought is to abandon WebWorks and do a re-write.

Or not support OS 5.0 phones.

Neither of the above is an option in case any one was wondering.

 

Please - any sort of workable-work-around???

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Focus based navigation hangs device

I've asked Jeff and Alex to take a look at the thread and see if they have any ideas...

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter