problem input database into package application
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Yudi_Susanto
Posted On:   Monday, April 21, 2003 10:17 AM

my application is using database rms. I package my application into mobile phone. but I have a problem.
where should I put my database ?

my experience when I put in a mobile phone, the application create a folder named WTK104 and the application folder and scr folder. I tried to put the database (appdb) inside the WTK104, but nothing happend. does anyone have a good suggest ?

Re: problem input database into package application

Posted By:   Itoyjaved_C  
Posted On:   Wednesday, April 23, 2003 12:34 AM

Hi,

One of the possible solution is to put the code of either
creating a new record store or opening an existing record store
in the init method. SO when ur midlet gets loaded
for the first time, in the init block first check
if there is an existing record store with the provided
name if it exists use that record store else
create a new record store.

I hope this approach helps.

Cheers

Re: problem input database into package application

Posted By:   Liam_Quinn  
Posted On:   Monday, April 21, 2003 04:12 PM

You need to create the initial record store from within your MIDlet code when it is run.
About | Sitemap | Contact