10-26-2010 12:38 PM
When I try to open my google gears database, I get always a "Disk I/O" error.
What could be the problem ?
Thank you so much
10-26-2010 12:42 PM
- Which OS version are you using?
- Are you using a Simulator or a physical Device?
- Which model of device are you using?
- If you are running the simulator, which Windows OS are you using?
10-26-2010 12:49 PM
I'm using the OS 5.
On the simulator, it's ok.
On the device (9700 Bold), I got the disk I/O error after this code :
var db = google.gears.factory.create('beta.database');
db.open('notesBase');
db.execute('create table if not exists Notes (id INTEGER,title TEXT,companyName TEXT, sector TEXT, facts TEXT, analysis TEXT,opinion TEXT,PublishingDate TEXT,CurrentPrice TEXT,TargetPrice TEXT,MarketCapName TEXT,CountryName TEXT,RecommendationCurrent TEXT,RecommendationPrevious TEXT,ReutersCode TEXT,BloombergCode TEXT,MarketCap TEXT,Ev TEXT,YtdAbs TEXT,YTDRel TEXT,BenchmarkIndexName TEXT,Phone TEXT,Email TEXT,AnalystPicture TEXT)');
Thank you to help me.
10-26-2010 12:53 PM
10-26-2010 01:21 PM
Yes, my device has a sd card.
If I search in the folders on my device, I find my google gear database.
Is it possible that the database is "dead" ?
Is it possible that my device do not find the database ?
10-27-2010 05:15 AM
I found a solution.
Actually, every time I open the index.html page.
I create the database and open the push port with this function
function openPort() {
blackberry.push.openPushListener(handleReturnData, port);
}
I found it's the problem because I need to close the port when I exit the application.
function openPort() {
blackberry.push.openPushListener(handleReturnData, port);
blackberry.app.event.onExit(handleExit);
}
function handleExit() {
blackberry.push.closePushListener(151);
blackberry.app.exit();
}
Could you confirm we need to close the port ?
10-27-2010 07:26 AM
11-01-2010 04:13 AM
Ok, I understand.
So it means it's not possible to receive push messages when the application is close, isn't it ?
How can I change the icon of my application to indicate there are new push messages available ?
11-01-2010 07:26 AM
11-01-2010 01:23 PM
Thank you very for all your answers.
How do you configure to run in background with the lastest SDK ?
I have the Blackberry Widget SDK v1.5.0.18.