Header Sep
Symbian Tips, Tricks & Code
My Rating Score
Login to rate page

May 2005
How to access the Memory Stick root directory on a Sony Ericsson P910 smartphone

[Back]

Have you wondered how to programmatically access the root directory of a Memory Stick from the client side of a Sony Ericsson P910i?

Would you like to access the root directory as easily as possible; for example to directly access photos taken with a digital camera that are stored in \DCIM\?

For example, since the File Manager application is installed by default on a P910i, these directories can be accessed by selecting the folder "External - Other", so it is possible for third party developers to access these directories as well.

The magic folder is \System\MSROOT\ and the case must match this exactly (so neither \system\MSROOT nor \System\msroot will work). The root of the memory stick will appear under it. So for example, you can access \DCIM as \System\MSROOT\DCIM.

Download code sample>>

At the start of this application code sample, a Text ListBox is created with content filled by scanning:

  • drive d:\ - this is the root of the memory stick as typically seen by applications on a Sony Ericsson P910.
  • d:\ System\MSROOT\ - this is a real root of the memory stick. You can access all the files from this point.

 
To build the MemStick example for the P910 smartphone use the following:
 
$ bldmake bldfiles
$ abld build thumb urel
$ makesis MemStick.pkg

More information about accessing files and folders can be found in the UIQ 2.1 SDK>>. Search for RFs, CFileMan, CFileSystem, CDir, CDirScan classes.

 

My Rating Score
Login to rate page