You Are Here:

Community: Developer Discussion Boards

#1 Old Writing a book from mobile phone - 2009-06-29, 20:15

Join Date: Mar 2009
Posts: 4
viju85
Offline
Registered User
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
Reply With Quote

#2 Old Thumbs up Re: Writing a book from mobile phone - 2009-06-30, 06:41

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
Quote:
Originally Posted by viju85 View Post
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

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..
Reply With Quote

#3 Old Re: Writing a book from mobile phone - 2009-06-30, 06:59

Join Date: Mar 2009
Posts: 4
viju85
Offline
Registered User
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
Reply With Quote

#4 Old Re: Writing a book from mobile phone - 2009-06-30, 08:09

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
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
Reply With Quote

#5 Old Thumbs up Re: Writing a book from mobile phone - 2009-06-30, 10:50

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
Quote:
Originally Posted by viju85 View Post
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
Do u think that writing huge amount of data to RMS is the efficient way. I commit that writing to RMS is much speedy then writing to filesystem but still i oppose that writing huge amount of data to RMS is not an efficient thinking.

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..
Reply With Quote

#6 Old Smile Re: Writing a book from mobile phone - 2009-06-30, 12:50

Join Date: Apr 2008
Posts: 10
gurusekhar
Offline
Registered User
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia