Thursday, 15 November 2012

Java Blackberry database management

Blackberry java development allows to create a database on the device. There are many possible ways to create database. I have recently used Sqlite database for my application. Following is what I have done to use that with my application. 1) Create a database through through blackberry emulator. Following is the code to do that.  URI uri = URI.create("file:///SDCard/Databases/employee.db"); Database sqliteDB = DatabaseFactory.create(uri); Statement st = sqliteDB.createStatement("CREATE TABLE Employee...