×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    setPreferenceForKey() size limit?

    Hi,

    I would like to know if there is any explicit size limit to preferences set with setPreferenceForKey() method. I've checked around the Web Developer's Library but without results..

    Thanks,
    Pit

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: setPreferenceForKey() size limit?

    Quote Originally Posted by jappit View Post
    Hi,
    I would like to know if there is any explicit size limit to preferences set with setPreferenceForKey() method. I've checked around the Web Developer's Library but without results..
    There's no limit other than of course when you start to run out of memory. I've used it with over 200kb of data and it works well and is quite fast even with large amounts of data!

    Peppe

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: setPreferenceForKey() size limit?

    Hi Peppe,

    Really thanks for your answer! I had the same impression, but could not be sure about it because of the absence of explicit references..

    Anyway, this is surely a great thing, expecially if performance is good as you say!

    Pit

  4. #4
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: setPreferenceForKey() size limit?

    just out of curiosity, have you tried loading xml formatted data into the value of a pref variable?

  5. #5
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: setPreferenceForKey() size limit?

    Quote Originally Posted by hp3 View Post
    just out of curiosity, have you tried loading xml formatted data into the value of a pref variable?
    Nope, I haven't. You'd have to parse it into a DOM tree yourself if you stored it as the raw XML text though. However you might want to consider storing JavaScript objects as JSON strings..

Similar Threads

  1. mms image size limit
    By meghaarya in forum General Messaging
    Replies: 0
    Last Post: 2008-02-02, 07:18
  2. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  3. Size limit of a single RMS record ?
    By civax in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-27, 12:55
  4. A Different Jar Size Limit Problem
    By cicdem in forum Mobile Java General
    Replies: 0
    Last Post: 2004-06-17, 15:01
  5. resource limit size
    By gilch in forum Mobile Java General
    Replies: 3
    Last Post: 2003-08-03, 10:26

Posting Permissions

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