×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Nov 2010
    Location
    Egypt,Mansoura
    Posts
    80

    Lightbulb i wanna get all images in my phone to add selected to image[ ]

    i wanna get all images in the phones

    and select what i wanna to add to my j2me app

    can we do it?

  2. #2
    Registered User
    Join Date
    Jul 2010
    Posts
    29

    Re: i wanna get all images in my phone to add selected to image[ ]

    Yes, you can get all the images using fileconnection api.

    You can access images on the memory card by :: System.getProperty( "fileconn.dir.photos"); which will output you the path as : file:///C:/Data/Images/ .

    And to access the memory card you can use : System.getProperty( "fileconn.dir.memorycard"); which will output you the path as : file:///E:

    Then if you want to open the image you can use file connection API : fc = (FileConnection) Connector.open(pathUrl);

    One more thing : you can use the following array to have a specific search of images :

    EXTENSION = {"bmp", "BMPf", "cur", "exif", "gif", "ico", "img", "jpeg", "jpg", "png", "tif", "tiff", "xbm"};

    Compare file name extension with the array.


    -Regards Rupaa.

  3. #3
    Regular Contributor
    Join Date
    Nov 2010
    Location
    Egypt,Mansoura
    Posts
    80

    Re: i wanna get all images in my phone to add selected to image[ ]

    Quote Originally Posted by Rupa View Post
    Yes, you can get all the images using fileconnection api.

    You can access images on the memory card by :: System.getProperty( "fileconn.dir.photos"); which will output you the path as : file:///C:/Data/Images/ .

    And to access the memory card you can use : System.getProperty( "fileconn.dir.memorycard"); which will output you the path as : file:///E:

    Then if you want to open the image you can use file connection API : fc = (FileConnection) Connector.open(pathUrl);



    One more thing : you can use the following array to have a specific search of images :

    EXTENSION = {"bmp", "BMPf", "cur", "exif", "gif", "ico", "img", "jpeg", "jpg", "png", "tif", "tiff", "xbm"};

    Compare file name extension with the array.


    -Regards Rupaa.
    Thanks for ur replay u give me all i need to ..... thanks again

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: i wanna get all images in my phone to add selected to image[ ]

    Quote Originally Posted by buffon2009 View Post
    i wanna get all images in the phones

    and select what i wanna to add to my j2me app

    can we do it?
    For this you can use the File Connection API and In the WTK, apps folder there is teh PDAP demo, the best demo for the file system, you can follow and understand the same and then can browse the file according to the extension as Ruppa suggested.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Regular Contributor
    Join Date
    Nov 2010
    Location
    Egypt,Mansoura
    Posts
    80

    Re: i wanna get all images in my phone to add selected to image[ ]

    Quote Originally Posted by raj_J2ME View Post
    For this you can use the File Connection API and In the WTK, apps folder there is teh PDAP demo, the best demo for the file system, you can follow and understand the same and then can browse the file according to the extension as Ruppa suggested.

    Thank u for ur reply i will see that demo right now
    Let The Impossible Happen!!!

Similar Threads

  1. list of images to be made selected
    By varunmails in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-29, 08:32
  2. Wanna to set image in Header Part....
    By kalgi in forum Symbian
    Replies: 4
    Last Post: 2009-06-04, 11:29
  3. Replies: 1
    Last Post: 2008-12-14, 21:03
  4. Replies: 1
    Last Post: 2008-12-14, 17:10
  5. Is it possible if i wanna add new language to system?
    By nick_atl2000 in forum Symbian User Interface
    Replies: 2
    Last Post: 2002-11-27, 07:04

Posting Permissions

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