×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2011
    Posts
    104

    Post How to set path to memory card of the mobile?

    Hi All,
    I am using latest qt version 4.7,where i developed an application on Audio Recording. I need to set the path to memory card(ie,mass memory),I have seen links based on carbide link :http://www.developer.nokia.com/Commu..._manufacturers
    But could not find any solution for this latest version.

    Can anyone help me out in finding this!!

    This is what i tried.I used two methods but i am clueless…. But the audio file gets stored in simulator ,,but not in desired memory card location!!!

    AudioBuffer::AudioBuffer()
    {
    audioSource = new QAudioCaptureSource();
    capture = new QMediaRecorder(audioSource);

    QAudioEncoderSettings audioSettings;
    audioSettings.setCodec("audio/vorbis");
    audioSettings.setQuality(QtMultimediaKit::HighQuality);
    capture->setEncodingSettings(audioSettings);
    capture->setOutputLocation(QUrl::fromLocalFile("test.wav"));

    FileName path = PathInfo::MemoryCardRootPath();
    path.Append( PathInfo::SoundsPath() );

    // QFile file;
    // QDir::setCurrent("/tmp");
    // file.setFileName("test.wav");
    // QDir::setCurrent("/home");
    // file.open(QIODevice::ReadOnly);
    }

    I am using Symbian platform(Qt-Quick)

    Regards,
    Harish.
    Last edited by mkhpad; 2012-02-20 at 09:27.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: How to set path to memory card of the mobile?

    hi

    Your approach is correct it should work.

    in
    FileName path = PathInfo::MemoryCardRootPath();
    path.Append( PathInfo::SoundsPath() );
    What is the type of FileName ? Please mind PathInfo::XXX() returns hard coded literal as constant Symbian descriptor --- do you construct QString before using it like below ?

    Code:
    QString myString = QString::fromUtf16(theDescriptor.Ptr(), theDescriptor.Length());

  3. #3
    Regular Contributor
    Join Date
    Nov 2011
    Posts
    104

    Re: How to set path to memory card of the mobile?

    Thank you for your reply izinin i will try that and let you know....

Similar Threads

  1. How to get the path to photos on memory card?
    By heman in forum Mobile Java General
    Replies: 6
    Last Post: 2012-09-03, 10:15
  2. Replies: 3
    Last Post: 2011-06-20, 14:29
  3. How to get the path to photos on memory card?
    By piyush_kyada in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2010-12-29, 07:55
  4. Replies: 4
    Last Post: 2009-10-15, 17:32
  5. N75 video and picture path in memory card
    By vijaypatidar in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-07-28, 13:07

Posting Permissions

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