×

Discussion Board

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

    What does the phone do when (disk)memory is low?

    Say, I have a widget that gets a staticmap from google once in a while.

    It gets cached to the phone main memory is what i noticed.
    No problem, no problem at all.

    In my case, I also wish to save a LOT of data to keys, whenever saving to disk is wanted.
    What would happen when the disk is almost full? Would the phone clear its browsercache once
    detected? Or would the app just crash, and should I add some way to detect low diskspace.

    Just wondering, no rush to solve this.
    Might come in handy someday.

    Jasper

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: What does the phone do when (disk)memory is low?

    Hello,

    One would have to test that to see what happens

    If you want to detect low disk space situations you can do it with PS 1.0 (wrt 1.1) System Information API
    entity: "Memory" and key: "CriticalMemory".
    http://library.forum.nokia.com/topic...77140A60D.html

    Window location can be used to check in which drive the widget is installed.
    Code:
    function widgetFolder() {
    	var lastDelim = window.location.href.lastIndexOf("/");
    	return window.location.href.substring(0,lastDelim);
    }
    -Ilkka

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

    Re: What does the phone do when (disk)memory is low?

    Thanks for your reply Ilkka!

    Some testresults:

    Low diskspace ( phone-main-memory < 2mb ) results in ITrace calls with error 1014 (general error) OVER 50% of the time.
    Low diskspace when trying to write preferenceforkeys, causes the app to die (quit) unexpectedly.
    Low memory also causes the app to die.

    So, stuff must be caught earlier on.

    I thought i'd let the community know.

    Jasper

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

    Re: What does the phone do when (disk)memory is low?

    Hi Jasper,

    thanks a lot for posting the results of your tests, this would be definitely useful to WRT developers! Can I ask you on which device you have tested this?

    Pit

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

    Re: What does the phone do when (disk)memory is low?

    Quote Originally Posted by jappit View Post
    Hi Jasper,

    thanks a lot for posting the results of your tests, this would be definitely useful to WRT developers! Can I ask you on which device you have tested this?

    Pit
    Hi Pit,

    Same to you, over the past time I've had a lot of good experiences reading your articles.

    The tests you refer to here, were done on an N97 Mini.

    Keep it up!

    Jasper

Similar Threads

  1. OMA DRM media transfer using PC to Phone using USB
    By venky123 in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2008-08-13, 03:02
  2. Any tips - Web services on phone
    By rossmckinnon in forum Symbian
    Replies: 2
    Last Post: 2007-10-15, 13:37
  3. Emulated Nokia phone can not connect to bluegiga WT12 module
    By hwan122 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-01-09, 01:05
  4. 7610 Contacts - Formatted Phone Numbers
    By padlon in forum General Development Questions
    Replies: 2
    Last Post: 2004-11-12, 18:02

Posting Permissions

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