07-28-2012 11:05 PM
i have minimized my webworks code but i still get the low memory issue, i have put the files separated as suggested, but i think that what overloads my app it´s a picture gallery that has a carrousel of pictures every time a picture get´s changed the memory rises it´s there a more light method or any other way i can implement to do the carrousel? or to get rid of the memory issue?
08-16-2012 11:45 PM
08-17-2012 01:04 AM
08-17-2012 08:57 PM
what it's even more frustrating it's that in newer versions of the blackberry smartphone also have the bug, so it's there anything that we can do?
08-17-2012 10:39 PM - edited 08-17-2012 10:58 PM
Yes exactly. We are planning on going live in the next week - and this issue is something we always thought we could manage as we thought it would be picked up and fixed during our performance enhancement phase. We always thought it was our (mine) fault due to development bugs/issues etc etc.
I never for the life of me, thought that the device software itself could be an issue - which has made us re-think our entire Blackberry strategy altogether. Which is unfortunate for everyone.
![]()
08-18-2012 10:50 AM
There are some more issue like scroll using trackball with phonegap sencha app.
Which is not resolved in advanced phones still.
Blackberry.
08-24-2012 05:32 AM
Hi Tim,
Is there some fixes for scroll with phonegap as we don't have the scrolling with elements when we fix the footer. like as below
var html_body='<div class="here"><img src="images/img_logo.png" />here for you...<div class="cl"></div></div><div class="hr-line"></div><div class="scroll-here" id="mainBodyDiv"><div class="ser-exp">when you are with airtel, your service experience is </div><div class="gray-bg">what you want, when you want.</div><div class="nav-here"><ul><li x-blackberry-focusable="true" id="1" x-blackberry-onUp="scrollHere()" x-blackberry-onDown="scrollHere()"><a href="#"><img alt="" src="images/icon_postpaid.png" />my mobile</a></li><li x-blackberry-focusable="true" id="2" x-blackberry-onUp="scrollHere()" x-blackberry-onDown="scrollHere()"><a href="#"><img alt="" src="images/icon_dsl.png" />broadband</a></li><li x-blackberry-focusable="true" id="3" x-blackberry-onUp="scrollHere()" x-blackberry-onDown="scrollHere()"><a href="#"><img alt="" src="images/icon_landline.png" />fixed line</a></li><li x-blackberry-focusable="true" id="4" x-blackberry-onUp="scrollHere()" x-blackberry-onDown="scrollHere()"><a href="#"><img alt="" src="images/icon_dth.png" />DTH</a></li></ul></div><div x-blackberry-focusable="true" id="5" x-blackberry-onUp="scrollHere()" x-blackberry-onDown="scrollHere()" class="gray-bg">pay your bills, recharge your phone, start & stop services, raise service requests & do lots more! because you are special, we also bring to you offers carefully chosen exclusively for you at airtel. </div><div class="we-are">we are here for you...</div></div>';
var local_storage_name = 'tmpl_otp_xml';
var local_storage_name_at = local_storage_name+'_at';
var screen_xml_url = '';//url_lob;
var config_footer = '1';
var returnCallBack2 = function (xml){ //alert("init index.js ");
Ext.getCmp("content").scroll= false;
Ext.getCmp("content").setScrollable(false);
//$(".pro-btn").removeAttr('style');
}
function scrollHere(){//alert("foucs");
try{
var elm = document.getElementById("mainBodyDiv");
//var elm = $("#mainBodyDiv").html();
//alert(elm);
var lastFocusId = parseInt(blackberry.focus.getFocus());
switch(blackberry.focus.getDirection()){
case 2 : // up
//alert("foucs up"+lastFocusId);
if(lastFocusId <1 && lastFocusId > 7){ //lastFocusId less than first element and greater than last element
blackberry.focus.setFocus((lastFocusId-1)+"");
//elm.scrollTop -= 50; //height of single <li> element
}else{
blackberry.focus.setFocus((lastFocusId-1)+"");
//if(lastFocusId <1 && lastFocusId > 7) elm.scrollTop -= 50;
}
elm.scrollTop -= 50;
if(blackberry.focus.getFocus()=="20"){
blackberry.focus.setFocus("5");
}
break;
case 3 : // down
//alert("foucs down"+lastFocusId);
if(lastFocusId > 0 && lastFocusId < 7){
blackberry.focus.setFocus((lastFocusId+1)+"");
//elm.scrollTop += 50;
}else{
blackberry.focus.setFocus((lastFocusId+1)+"");
//if(lastFocusId > 0 && lastFocusId < 7) elm.scrollTop += 50;
}
elm.scrollTop += 50;
if(blackberry.focus.getFocus()==lastFocusId){
blackberry.focus.setFocus("20");
}
break;
}
}catch(e){
//alert("errrrr- "+e);
}
}
function init(){//alert("init---index.js");
/* March 16 ,2012 By Mohit Resolution PLUGIN */
//localStorage.clear();
//return;
//(add the code below in try catch is for here for you screen flash issue dated 18 July 12).
try{
if(registered!=null && registered == '1') {//alert(" is registerd-- "+registered);
html_body='';
config_footer = '11';
//goto_last_lob();
} else {
if(window.localStorage.getItem("imageDownload")!=
//alert("-- imageDownloaded-- "+window.localStorage.getItem("imageDownload"));
html_body='';
config_footer = '11';
//redirectWindow("registration.html");
}
}
}catch(e){
//alert("ERRRRR"+e);
}
//
returnCallBack = returnCallBack2;
loadlobBodyContent(0);
/************************************/
}
08-24-2012 05:39 AM
Hi have to use this line with every focusable element to scroll in the app but on very fast scroll it hangs my app.
please suggest some workaround to fix the scrolling issue we are using sencha with phonegap for this app
x-blackberry-focusable="true" id="4" x-blackberry-onUp="scrollHere()" x-blackberry-onDown="scrollHere()"
function scrollHere(){//alert("foucs");
try{
var elm = document.getElementById("mainBodyDiv");
//var elm = $("#mainBodyDiv").html();
//alert(elm);
var lastFocusId = parseInt(blackberry.focus.getFocus());
switch(blackberry.focus.getDirection()){
case 2 : // up
//alert("foucs up"+lastFocusId);
if(lastFocusId <1 && lastFocusId > 7){ //lastFocusId less than first element and greater than last element
blackberry.focus.setFocus((lastFocusId-1)+"");
//elm.scrollTop -= 50; //height of single <li> element
}else{
blackberry.focus.setFocus((lastFocusId-1)+"");
//if(lastFocusId <1 && lastFocusId > 7) elm.scrollTop -= 50;
}
elm.scrollTop -= 50;
if(blackberry.focus.getFocus()=="20"){
blackberry.focus.setFocus("5");
}
break;
case 3 : // down
//alert("foucs down"+lastFocusId);
if(lastFocusId > 0 && lastFocusId < 7){
blackberry.focus.setFocus((lastFocusId+1)+"");
//elm.scrollTop += 50;
}else{
blackberry.focus.setFocus((lastFocusId+1)+"");
//if(lastFocusId > 0 && lastFocusId < 7) elm.scrollTop += 50;
}
elm.scrollTop += 50;
if(blackberry.focus.getFocus()==lastFocusId){
blackberry.focus.setFocus("20");
}
break;
}
}catch(e){
//alert("errrrr- "+e);
}
}
08-24-2012 11:00 AM
10-08-2012 11:17 AM
Were you able to find a solution for this memory issue with BlackBerry webworks? I am also facing the issue and any solution will be helpful.