×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2004
    Location
    TLV
    Posts
    20

    S40 and FileConnection: any "private" folder?

    Hi,

    On S40 (say, using a real 6280), I'm able to create files on the following folders, all of them in "file:///c:/predefgallery":
    - predefgraphics
    - predefmusic
    - predefthemes
    - predeftones
    - predefvideos
    - predefphotos
    - predefrecordings

    My question: is there a way to write stuff into another folder (preferably not accessible via user-navigation?)

    On S60: I'm using System.getProperty("fileconn.dir.private"), but it's not available on S40.

    Thanks,
    Ariel

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

    Re: S40 and FileConnection: any "private" folder?

    It's not a solution, but maybe the setHidden() method could be useful to hide your data to users (if it works on S40..)

    Pit

  3. #3
    Registered User
    Join Date
    Feb 2004
    Location
    TLV
    Posts
    20

    Re: S40 and FileConnection: any "private" folder?

    Thanks for the suggestion...

    Having some hidden folder in "file:///c:/predefgallery/predefphotos/" should indeed work on the 6280.

    But... there is at least one usability problem with hidden files:

    Say, a user installs a midlet which creates some big hidden folder... What do you do upon uninstallation of the midlet?

    On S60, the situation is handled elegantly: each midlet gets its own "private" folder, which is hidden to user AND automatically deleted upon uninstall.

    On Sony Ericssons, you can create a non-hidden folder in "file:///c:/other/", e.g. "file:///c:/other/MICKEYMOUSE" with hidden files inside... Then, upon uninstall: you could use the "Midlet Delete Confirm" (not tested yet) to fire a custom message, e.g. "Please delete the 'other/MICKEYMOUSE' folder in order to free memory".

    What would you do on a S40? You want to give the user the possibility to free his phone's memory upon uninstall, but the price is high: having a non-hidden folder named MICKEYMOUSE under "photos" in the gallery.

    At least, the possibility on S40 to write stuff into a generic folder (like "other" on Sony Ericssons) would help...

    Any hints?

Similar Threads

  1. Streaming via MemoryCard/Phone Memory on S40 3rd Ed
    By pig30n in forum Mobile Java Media (Graphics & Sounds)
    Replies: 19
    Last Post: 2009-08-20, 13:31
  2. Nokia S40 Writing File
    By hooopoe in forum Mobile Java General
    Replies: 6
    Last Post: 2007-06-20, 21:00
  3. WTK 22 does not support FileConnection well
    By Olnex in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-12-21, 08:47
  4. Max RMS size for S40 3rd Edition?
    By moamoa in forum Mobile Java General
    Replies: 3
    Last Post: 2006-08-10, 01:19
  5. JSR82 missing for S40 SDK?
    By moamoa in forum Mobile Java General
    Replies: 1
    Last Post: 2006-06-28, 17:22

Posting Permissions

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