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
Contributor
drjg22
Posts: 47
Registered: ‎03-27-2010
My Device: Bold 9000
Accepted Solution

Widget that uses google gears on Blackberry 8530 wont work

Hi everyone,

 

I have developed a widget that utilizes google gears  and the gears_init.js file as the method to use sqlite. I am able to load and see the widget work on the 8530 simulator, however it looks like the sqlite database is not being created and all I see are my html pages.

 

Does anybody know what could be wrong? I also deployed the app to my physical 8530 device but experience the same problem. I am running OS 5.0.0459 and Google gears version 0.5.0.0.

 

Any help is appreciated.

 

Thanks. 

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

Re: Widget that uses google gears on Blackberry 8530 wont work

Hi There,

 

Do you have an SD Card inserted into the 8530?  Gears SQLite databases require either an embedded eMMC card (typically found in a Bold or Storm) or an inserted SD card to store the database data.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
drjg22
Posts: 47
Registered: ‎03-27-2010
My Device: Bold 9000

Re: Widget that uses google gears on Blackberry 8530 wont work

I just tried it with an sd card and it works now - Thanks! 

 

I am experiencing another problem when I'm doing 40 insert statements, I receive an "out of memory" error and only a few insert statements are processed. My sd card that I inserted is 1gb and its completely empty.

 

In my widget, do I have to specify for it to us my sd card?

 

Thanks.

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

Re: Widget that uses google gears on Blackberry 8530 wont work

Hi drjg22,

 

Make sure that when you are done with any record set that you explicitly close it.  If you don't explicitly close your record sets it will cause a memory leak.

 

Do a quick check to see if your code is closing your record sets.  The signature of your error sounds like this could be the cause.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
drjg22
Posts: 47
Registered: ‎03-27-2010
My Device: Bold 9000

Re: Widget that uses google gears on Blackberry 8530 wont work

Hi Tim,

 

That seemed to do it - forgot to close the statements.

 

Thanks for your help!