01-06-2013 09:48 AM
I am creating a mobile app based on JavaScript, CSS3 and HTML5 for IPhone, BlackBerry and Android It is basically a browser based app.
All the data including some part of CSS store to database from server, i am using SQLite, I Have a created a database which store all the file from server then I am copying all the file from local database to mobile database, the software works fine in iPhone.
But when I am running the application in BlackBerry it cannot find the dataset to store the data.
This is the first time I am try to build an application for Blackberry and don’t have any idea. Can anyone help me please?
1- How to access BlackBerry database”SQLite”?
2- How to build and install application in blackberry?
With Regards
Solved! Go to Solution.
01-06-2013 12:55 PM
Hello,
If you take a look at our website it will help you get started. http://developer.blackberry.com/html5
For WebSQL check out our database docs https://developer.blackberry.com/html5/apis/databa
01-07-2013 07:15 AM
01-09-2013 11:00 AM
Thank you very much Chadtator and kpbird, i read about the articles and find them very helpful, I am fallowing the same process
But still can’t access the database it come out with message saying Db Error[object SQLError]
function loadDatabase()
{
db = window.openDatabase("Apperture", "1.0", "Apperture", 1000000);
db.transaction(loadDbTx, dbError);
}
function loadDbTx(tx)
{
tx.executeSql("select * from ui", [], function(tx, result) {
if (result.rows.length === 0)
{
tx.executeSql("insert into ui values('','','Default','image/banner.png','image/b
// downloadManifest();
} else {
page_init();
}
});
saveMetric("AppOpen", []);
//doAuthentication();
}
function dbError(err)
{
alert("Db Error first" + err);
}
I try to install the application into blackberry torch 9810 using Ripple to check what the result is. The application install successfully and when I am trying to open the application it come with fallowing message
Error Starting
Apperturev1: module ‘apperturev1’ attempts to access a secure API.
Building process:
Apperture Version: 1.0.0.0
Platform: WebWorks
Device: BlackBerry Torch 9810
OS: BlackBerry OS 7
Manufacturer: Research In Motion
Screen: 480x640
Density: 253 PPI
User Agent: Mozilla/5.0 (BlackBerry; U; BlackBerry 9810; en) AppleWebKit/534.1+ (KHTML, Like Gecko) Version/7.0.0.0 Mobile Safari/534.1
Setting
SDK Path: C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5
Project Root: C:\Users\OCP\RippleSites\AppertureBlackBerry
output folder : C:\Users\OCP\RippleSites\output\new
Enable Remote Web Inspector: unchecked
password:
simulator: 9930-7.0.0.318
with regards
yama
01-15-2013 05:55 AM