×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Aug 2008
    Location
    Gurgaon, India
    Posts
    155

    Unhappy delete file failure in JSR 75

    hi,

    i m opening an image with FileConnection(JSR75) in WRITE mode, and calling fc.delete().
    but it throws java.io.IOException.

    any suggestion..??

    Code:
    FileConnection fc=(FileConnection)Connector.open("file:///D:/ImageEditor/someImage.png",Connector.WRITE);
    fc.delete()
    thanx in advance
    Vineet Billorey "The Great"

  2. #2
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: delete file failure in JSR 75

    Quote Originally Posted by vineetbillorey View Post
    hi,

    i m opening an image with FileConnection(JSR75) in WRITE mode, and calling fc.delete().
    but it throws java.io.IOException.

    any suggestion..??

    Code:
    FileConnection fc=(FileConnection)Connector.open("file:///D:/ImageEditor/someImage.png",Connector.WRITE);
    fc.delete()
    thanx in advance
    check whether file exists or not. like
    if(fc.exists()){
    sop("file exists");
    fc.delete();
    else
    sop ("file not exists");
    check for the path u take
    Last edited by jitu_goldie; 2009-04-02 at 18:10.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    London
    Posts
    41

    Re: delete file failure in JSR 75

    Is the file definitely loaded? Your path looks interesting, which SDK are you using? Are you sure that path exists on the device and you're not accidently using the PC path?

  4. #4
    Registered User
    Join Date
    Aug 2008
    Location
    Gurgaon, India
    Posts
    155

    Re: delete file failure in JSR 75

    thanx for reply.

    yes, the folder D:/ImageEditor is created on the mobile and the image exists and displays in the midlet too.

    but it doesn't get deleted

    i m using j2mewtk 2.5.2
    Vineet Billorey "The Great"

  5. #5
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: delete file failure in JSR 75

    Quote Originally Posted by vineetbillorey View Post
    thanx for reply.

    yes, the folder D:/ImageEditor is created on the mobile and the image exists and displays in the midlet too.

    but it doesn't get deleted

    i m using j2mewtk 2.5.2
    will u check the permission set for ur application in APP manager? please set it to allow write.. Can u check the same with other images lying on E: or C: ? Please check and reply.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  6. #6
    Registered User
    Join Date
    Aug 2008
    Location
    Gurgaon, India
    Posts
    155

    Re: delete file failure in JSR 75

    i ve checked the permissions.
    it is neither deleting in emulator, not in LG KG195 handset

    thanx in advance
    Vineet Billorey "The Great"

  7. #7
    Registered User
    Join Date
    Aug 2008
    Location
    Gurgaon, India
    Posts
    155

    Re: delete file failure in JSR 75

    Hi,

    thanx for ur support.

    i was not closing the file before delete command.

    now it is deleting.

    thanx again
    Vineet Billorey "The Great"

  8. #8
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: delete file failure in JSR 75

    Quote Originally Posted by vineetbillorey View Post
    i ve checked the permissions.
    it is neither deleting in emulator, not in LG KG195 handset

    thanx in advance
    about LG sets i dont know if any issue is there with them but the logic was worked prtty fine with other handsets and with emulator too..
    Have u tried the same with the other sets?
    Is the same issue arising with them too ?

    Please check and reply..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  9. #9
    Registered User
    Join Date
    Aug 2008
    Location
    Gurgaon, India
    Posts
    155

    Red face Re: delete file failure in JSR 75

    thanx

    i ve got my mistake.

    pls see the post just before in the same row.
    Vineet Billorey "The Great"

Similar Threads

  1. Replies: 6
    Last Post: 2009-09-23, 11:17
  2. Carbide Build PKG file to SISX - Phone says: "Can't Install"
    By mikedeklerk in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2009-05-19, 08:23
  3. Delete file from mobile drive
    By chanchad_tejas in forum Symbian
    Replies: 1
    Last Post: 2007-11-13, 15:02
  4. Replies: 1
    Last Post: 2005-05-26, 14: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
  •  
×