×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Question File System access

    Hi

    I am new to j2me but I have experience in java, my latest task is to make a program that deletes some file from both internal flash and SD flash on symbian OS mobiles only,

    How do I access files in J2me midlets? and is the same io api work as in j2se?

    thanks in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: File System access

    Hi,

    To access files in Java ME you can use the FileConnection API (JSR-75).

  3. #3
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: File System access

    Hi ,

    Adding to bogdan.galiceanu , to access the filesystem in j2me you have to use FileConnection API (JSR-75) and for your second question This same API will not work in j2se.

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

    Thumbs up Re: File System access

    Hi,
    In addition to the post of the bogdan.galiceanu,
    Please find the zip file attached and have the docs and examples of the same..

    Just go through the link-
    http://www.forum.nokia.com/document/...C502D1F00.html
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

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

    Re: File System access

    As a side note: using FileConnection API you'll not have access to all folders, but only to public ones. So, you could not be able to delete all content on external memory if some of this is contained into private folders.

    Pit

  6. #6
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: File System access

    Quote Originally Posted by raj_J2ME View Post
    Hi,
    In addition to the post of the bogdan.galiceanu,
    Please find the zip file attached and have the docs and examples of the same..

    Just go through the link-
    http://www.forum.nokia.com/document/...C502D1F00.html
    How is that in addition? That's the same link I provided.

Similar Threads

  1. Access to the file system
    By alys56 in forum Mobile Java General
    Replies: 2
    Last Post: 2008-03-21, 16:02
  2. Nokia 6101 Locked 2 TMobile Midlet can't access internet...
    By Jason Glass in forum Mobile Java Networking & Messaging & Security
    Replies: 45
    Last Post: 2007-11-14, 02:19
  3. nokia 6288 file system access problem
    By lenon.abr in forum Mobile Java General
    Replies: 12
    Last Post: 2007-04-13, 08:44
  4. Virtual File System for Midnight Commander
    By amigo12 in forum Python
    Replies: 0
    Last Post: 2005-12-09, 17:20
  5. Symbian file system
    By gargidasgupta in forum Symbian C++
    Replies: 0
    Last Post: 2004-09-20, 08:55

Posting Permissions

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