×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2010
    Location
    Zaandam, Holland
    Posts
    71

    How much data can a key (setPreferenceForKey) hold?

    I want to store huge amounts of (gps) locations as an array or string to a key,
    to submit them later on, to provide some kind of offline/holiday-roaming functionality.

    How much data can I expect to fit in a key?

    Thanks, Jasper

  2. #2
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    83

    Re: How much data can a key (setPreferenceForKey) hold?

    Quote Originally Posted by JasperGoes View Post
    I want to store huge amounts of (gps) locations as an array or string to a key,
    to submit them later on, to provide some kind of offline/holiday-roaming functionality.

    How much data can I expect to fit in a key?

    Thanks, Jasper

    Not sure, but on several sources I found it's 20kb.
    Best regards,
    Dusan

  3. #3
    Registered User
    Join Date
    Mar 2010
    Location
    Zaandam, Holland
    Posts
    71

    Re: How much data can a key (setPreferenceForKey) hold?

    To avoid keys being stuffed with too much data, I chose to save data to a great many keys instead,
    handling them as "blocks". Left the tracker running overnight, and seems like 12 hours and 24
    minutes of caching locations, results in a usage of little over 6mb of memory on the phones main memory.
    Seems to be sufficient for now, will minimize it a bit more by "compressing" the data efficiently.

    A question popped up though; I always install widgets on the phones main memory,
    but if i would not, would the keys still be stored on the main memory? Thus, if a user
    installs it with not-too-much free space on its main memory, would it run out?
    Are "disk full" errors catchable? Is there some way to check for the amount of free space?

    Thanks again :3


    @powerpixels, really been appreciating your support lately. Thanks

Similar Threads

  1. Раскладка клавиатуры в консоли
    By arkenoi in forum Russian Developer Forum - Форум Российских разработчиков
    Replies: 11
    Last Post: 2009-03-18, 18:27
  2. PC Suite ConnAPI data transfer rate
    By raymondxie in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-01-08, 23:06
  3. GameCanvas Middle Soft Key Problem
    By nnigel in forum Mobile Java General
    Replies: 5
    Last Post: 2006-06-27, 11:14
  4. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00
  5. keybindings nokia7650 and nokia6310i
    By topisystems in forum Mobile Java General
    Replies: 1
    Last Post: 2002-06-05, 14:25

Posting Permissions

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