| Reply | « Previous Thread | Next Thread » |
|
in my software i have to create a static database of some what 500 records.
static means this database will not change by the user. so is there any 3rd party database available like excel,mysql, etc in which i can directly put all data and after some time if database is extended by me , i will just provide the new database to the user not the whole software. e.g. in the dictionary applications dictionary viewer part is different from the database part. and further if some more words entered in the dictionary server just provide the new updated database and viewer just be same. Be hungry,Be foolish vivart pandey |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
is this data base is supposed to be on the Mobile itself,in case of the standalone application? or are you putting the database on the server? like in the application based on the client server architecture. Thanks R a j - The K e r n e l |
|
ya database resides on the mobile.it works offline.
Be hungry,Be foolish vivart pandey |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
Then thats not possible,since you can not get the database access on the mobile.Once a database is created then you can just access the same using the application only,but not like you are talking about,that the application will remains installed,and you will change the database and then application will start to use the newer database.Nup,thats not possible man, In the case of server side application you can do so, Thanks R a j - The K e r n e l |
|
How big is each record? What information is in the records? How do you need to search it?
Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
Quote:
500-1000 records are there in the database and search database with simple word search. user cant modify the database.this requirement is not feasible using recordstore. i want to create a file like dict.db or something dict.d that's alone not readable by user but software can fetch data from this file.if in future some updates are available for database, user will just replace the dict.db file with new dict.db file. Be hungry,Be foolish vivart pandey
Last edited by vivartpandey : 2009-06-30 at 13:22.
|
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
|
Hi,
Quote:
I wonder if you can do this using any of the Data bases.Since on the device you will not be able to browse the RMS so that you can replace the existing RMS/DB/D file and then you expect that your device starts reading the updated data.The data base is created when the application gets installed.And you do not have the access right for the same. Thanks R a j - The K e r n e l |
|
Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
ansh.chauhan
Offline
Regular Contributor
|
|
|
Quote:
Just create file using File connection Api and Save it on Your memory card.you want user cannot read that file for this you have to encrypt that file.and decrypt that file using your applcation.So no one can read or use your data base you can modify this also after that encrypt it again. may be this will help you buddy Anshu Chauhan J2me Developer |
| ansh.chauhan |
| View Public Profile |
| Find all posts by ansh.chauhan |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
I guess that this appliction is supposed to be the secured application.Therefore,the data must be not accessible. I really agree with ansh,you can do so.However if any user come and then delete the same.Or,any individual make the new file with the same name and replace the original file with the latest one,then I suspect that the entire data you are going to loose. I would rather recommend that he should make this application using the RMS and make the new version of the application with the latest database.Either the application must be server based and the database must be changed on the server side. Please correct me if somewhere I am wrong. Thanks R a j - The K e r n e l |
|
Without some clue as to the size of the data, it is hard to advise you.
You can just store the data you want in the JAR file, and read it from there. If it is small enough, you can load it all into the heap when the application starts, and search it very quickly (load the records as objects in a Hashtable, for example). If there is too much data for this, it can be split across several files, and the correct file loaded and searched each time. Update the data by updating the JAR. Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
Hi,
IF u think that the record size is high i would suggest you to put it in a server and access it via GCF.If so u can change ur data at anytime without affecting the presentation layer. Thanks Soku |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
Yup,thats what I suggest.But He is looking for the standalone application.However this is the best way.RMS is also not a bed choice,as I have written in my previous post,you have to keep the track of the version changing.However he is not looking for this kind of approach. Thanks R a j - The K e r n e l |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Icons in s60 | drizzt6 | Mobile Java General | 5 | 2009-03-06 10:32 |
| 3rd party MTM in create Message menu option of contact application. | shafali gupta | General Symbian C++ | 3 | 2008-11-20 17:00 |
| 3rd party dual mode phone app on the S60 3rd edition SDK | ZelimirD | VoIP | 7 | 2007-11-30 15:49 |
| Executing a 3rd party program from my program | gostaf | Mobile Java General | 2 | 2007-09-26 10:25 |
| PC Suite 4.5a don't work with 3rd party Bluetooth equipment | Nokia_Archive | Bluetooth Technology | 2 | 2002-05-28 11:20 |