| Reply | « Previous Thread | Next Thread » |
|
Hi All,
I am writing an application using J2ME. The concept of the application is to read/write a book from the mobile phone. I am able to write books with page numbers. When i try to have chapter numbers, i encounter problems with insert/delete chapters. Could anyone point me to the right direction towards efficient book writing sample code or pointers from the mobile phone? Please advice, Thanks, Vijay.C |
|
Quote:
While reading u have to follow the same way using during writing of book. Well please well explained the problem in details with ur need. thanks, jitu_goldie.. KEEP TRYING.. |
| jitu_goldie |
| View Public Profile |
| Find all posts by jitu_goldie |
|
Storing book page by page:
title_chapterNumber_pageNumber title_1_1 title_1_2 title_2_3 .. .. title_20_100 Now i want to insert a new chapter between chapter 1 and chapter 2. title_1_1 title_1_2 title_2_3<--NEWLY INSERTED CHAPTER title_3_4<-- original chapter 2 .. title_20_100 title_21_101 for me to rename the RMS file, it takes abt nearly 15mins for 100 files on the real device. I would like to know if there is any better/effecient way to do these operations. THanks, Please advice. Vijay.C |
|
Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
ansh.chauhan
Offline
Regular Contributor
|
|
If your data is large it will take time.There many ways for changing rms.
One of them is take all the values from rms and store it in to Vector and delete the rms.then do the changes whatever you want in vector now create new Rms with same name you have created previously then save all the vector data in rms .Try this and let us confirm how its working Anshu Chauhan J2me Developer |
| ansh.chauhan |
| View Public Profile |
| Find all posts by ansh.chauhan |
|
Quote:
Well anyways as anshu already suggest u take the funda of vector and deleting RMS is quite a good approach. Insert ur data at the desired place according to ur requirement and then copied to RMS.. check and reply.. thanks, jitu_goldie.. KEEP TRYING.. |
| jitu_goldie |
| View Public Profile |
| Find all posts by jitu_goldie |
|
Hi
You can add or delete the chapters in RMS as you required. For this you need to do store the sequence of chapters and chapter names or titles in New RecordStore which links to Content Of Chapters. So you need not to manipulate all the recordstores just change in the link of one record store which is small and efficient. |
| gurusekhar |
| View Public Profile |
| Find all posts by gurusekhar |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Mobile learning server / environment published | mikaset | News, Announcements and Job Listings | 0 | 2008-03-25 21:50 |
| [announce] Mobile Python book soon in Sept 2007 ! | cyke64 | Python | 11 | 2007-10-03 20:46 |
| How to transfer phone book from 8210 to 6300? | daliansong | General Discussion | 2 | 2007-05-04 16:50 |
| How to initiate a GPRS connection to the mobile phone from a remote server? | VigenIssahhanjan | Symbian Networking & Messaging | 2 | 2004-11-22 09:50 |