×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    142

    problem in rename the captured image

    I want to rename the captured image.
    i am using below code to rename the image.
    iFs.Connect();

    TInt iErr1=iFs.Rename(aOldFileName,aNewFileName);
    if(iErr1<0)
    {
    CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
    informationNote->ExecuteLD(_L("rename not possible"));
    }
    iFs.Close();

    this fuction works well on device like nokia c5-00, but on nokia E-63 this fuction throws the error code " -14 " which means "a requested resource is already in exclusive use."

    so till i understand it is because the camera has acquired the image and so it is not allowed to rename..

    so i think i have to close that file..but don't know how to close that file which is acquired by camera?

    so how can i proceed to rename that image?

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: problem in rename the captured image

    How exactly is the image taken ? have you tried closing camera application already ?

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    142

    Re: problem in rename the captured image

    no i am not closing camera application.
    actually i am not calling camera application from my application.
    i am taking an image from inbuilt camera application and then turn my application on and take the last image and rename that image.

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: problem in rename the captured image

    How in the coding are you doing that ?

    Basically if the camera application is not closing the file, then you could indeed try closing the camera application task: http://www.developer.nokia.com/Commu..._running_tasks

    Also if you want to use the standard camera for taking an image, you could also try using New file service API: http://www.developer.nokia.com/Commu...ice_Client_API

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: problem in rename the captured image

    Following link says something about an issue, though its not completely related to your's, but yes Point #3 says the same error in same condition(means launching your app & sending camera in background).

    http://www.developer.nokia.com/Commu...s_in_Nokia_N85

  6. #6
    Registered User
    Join Date
    Dec 2011
    Posts
    142

    Re: problem in rename the captured image

    Basically if the camera application is not closing the file, then you could indeed try closing the camera application task: http://www.developer.nokia.com/Commu..._running_tasks
    this link is useful..
    killing the camera application works fine..now it is allowing me to rename the file.
    but after renaming the file i want to navigate to camera application which is not possible in this case..
    so any suggestion...??

    thanks for your valuable help .....

  7. #7
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: problem in rename the captured image

    So why not launch the camera app again after renaming the file.

  8. #8
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: problem in rename the captured image

    Quote Originally Posted by jayesh4456 View Post
    this link is useful..
    killing the camera application works fine..now it is allowing me to rename the file.
    but after renaming the file i want to navigate to camera application which is not possible in this case..
    so any suggestion...??

    thanks for your valuable help .....
    firstly, use EndTask, instead of killing, it is safer. As mentioned you could re-launch the camera app, or try the second link I suggested.

Similar Threads

  1. how get captured image path
    By Ajmal in forum Symbian Media (Closed)
    Replies: 18
    Last Post: 2012-04-24, 12:11
  2. Focus gets lost whenever an image is captured
    By not_dying in forum Symbian C++
    Replies: 3
    Last Post: 2009-12-22, 07:16
  3. like play captured Image effect ?
    By nokia_lin in forum Symbian User Interface
    Replies: 7
    Last Post: 2009-05-20, 02:47
  4. Multimedia Key and Last Captured image
    By sinhashivam in forum Symbian C++
    Replies: 4
    Last Post: 2009-03-16, 08:00
  5. Draw captured image to the screen (again)
    By s.lumma in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-07-05, 09:11

Posting Permissions

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