×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    45

    Regarding RecordStore

    Hello Friends,

    In my application i am using j2me RecordStore, in my RecordStore i am adding some data, and displaying in a list also, as soon as i will delete data from list in my application i am deleting corresponding RecordStore data also.

    if i have 4 data, Data1, Data2, Data3 and Data4, with 1, 2, 3 and 4 record id's and if i delete Data3, is we cant reuse that particular recordID

    and also i am unable to dispaly Data4, it is showing me NullPointer Exception

    Can u please tell me the reason for this.

    Thanking u,
    Mangala.

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Regarding RecordStore

    You might like to read this article in the wiki.

    No, you can never re-use a record ID. This is correct, it is the by the design of RMS.

    There is no reason why you should become unable to read the 4th record... can you reproduce this problem in a small sample of code?

    Graham.

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    45

    Re: Regarding RecordStore

    hi...,

    Thanks a lot for reply, i solved that problem by using recordEnumeration interface.

    -Mangala.

  4. #4
    Registered User
    Join Date
    Aug 2010
    Posts
    23

    Re: Regarding RecordStore

    Hi,

    You can check this example for more help!!
    http://book.javanb.com/wireless-java...e/LiB0058.html

    Regards

Similar Threads

  1. Cannot Delete RecordStore although RecordStore is closed already
    By playplay1978 in forum Mobile Java General
    Replies: 6
    Last Post: 2010-04-29, 04:03
  2. RecordStore sometimes fails create new RecordStore
    By thechameleon in forum Mobile Java General
    Replies: 1
    Last Post: 2009-09-09, 12:48
  3. Recordstore !!Recordstore !! where are you ?
    By Abhishek_karmakar in forum Mobile Java General
    Replies: 3
    Last Post: 2009-04-01, 14:33
  4. RecordStore
    By aloire in forum Mobile Java General
    Replies: 3
    Last Post: 2009-02-06, 09:43
  5. RecordStore
    By deepu28 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-04-28, 08:55

Posting Permissions

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