×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    63

    How to get the image directory and the images?

    Hi,

    I have a question why does the image dir not work on a real device, I use
    Code:
    System.getProperty("fileconn.dir.photos");
    to get the image dir and it works fine on emulators including S60 and S40 emulators but fails on a real device where I do have images(the photo capture dir) why?

  2. #2
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    63

    Re: How to get the image directory and the images?

    'Subscribe to thread'

  3. #3
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    63

    Re: How to get the image directory and the images?

    I found the images in a different directory WTF? The documentation says System.getProperty("fileconn.dir.photos"); After I copied them over my applications saw them? Whats going on and whats the 2nd directory's path/property name ie. how do I reference it?

    Ok I see a setting phonememory vs. external I don't suppose there is a standard path to this 2nd(default) storage?

  4. #4
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    63

    Re: How to get the image directory and the images?

    Ok I will modify my approach, I will search for all images recursively, that should solve the problem.

  5. #5
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    63

    Re: How to get the image directory and the images?

    Now I tried with listing all roots, and I got 'Phone Memory' and file:///C: (which I think is exactly the same thing) the files got duplicated even thought I know whey are not, and I didn't get file:///E: which is the Hard Drive of the phone?! That's weird listing all roots does not give You the main hard drive???

  6. #6
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: How to get the image directory and the images?

    It is not entirely clear to me what is your problem... if you still have challenges with this could you please tell us what is the problem exactly and what phones you have tested this?

    Hartti

  7. #7
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    63

    Re: How to get the image directory and the images?

    Hi,

    Ok the Enumeration roots = FileSystemRegistry.listRoots();

    returns 'Phone Memory' And file:///C: which are the same
    it does not return file:///E: which is the root for the 'hard drive' or main storage(the thing with 4GB)

    Nokia N91

  8. #8
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: How to get the image directory and the images?

    Ok, got it. And agreed, sounds odd.
    Unfortunately I am on the road and not being able to check the situation more closely in the near future.

    Hartti

  9. #9
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    63

    Re: How to get the image directory and the images?

    Hi,
    I see that a SE M600i handles everything correctly, all roots including Memory Stick are displayed and no duplications, is it something phone/firmware specific?
    Last edited by martin.wainamoinen; 2008-02-02 at 11:29.

Posting Permissions

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