CameraCaptureDialog InitialDirectory

K

Krish

Hi,

I am using CameraCaptureDialog (CF2 && C#) ... I am trying to save the
image to the camera defined directory.... As per MSDN when we set
InitialDirectory to null, it will save it on Default Directory.

The issue is for HTC, the default directory is My Documents\My
Pictures and My Documents\My Videos both in Storage Card and Main
Memory... In Main Memory it works fine whereas in Storage Card it is
always saved under DCIM folder....

In WM5 HTC devices, the image and Video always getting saved to last
used directory... for eg., If I use Photo Mode first both Photo and
Video goes to My Pictures.

I can see HTC have custom camera implementation, since we support
multiple devices... I do not want any Device Specific changes on the
code... so reading from Registry is not an option for me.

In Emulator the pictures are always saved under \My Documents\My
Pictures(Video and Image) in Main Memory and under DCIM in Storage
Card.

So I would like to know is there a common way to find out the default
storage location for Camera Application.

Thanks,
Mohan
 
P

Peter Foot [MVP]

As you have discovered the implementation differs depending on the OEM. You
should find default paths for internal and external storage are at this
registry key:-
[HKEY_LOCAL_MACHINE\System\Pictures\Camera\OEM\PictureLocation]

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility
 
K

Krish

Thanks Peter...


Is there any document which speaks about these registry settings.

It would be really useful, because most devices have custom camera
implementation, for eg., Eten does not launch camera with
CameraCaptureDialog. Is there someway to identify the executable for
camera application from registry.

Thanks.
Krish
As you have discovered the implementation differs depending on the OEM. You
should find default paths for internal and external storage are at this
registry key:-
[HKEY_LOCAL_MACHINE\System\Pictures\Camera\OEM\PictureLocation]

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility




I am using CameraCaptureDialog (CF2 && C#) ... I am trying to save the
image to the camera defined directory.... As per MSDN when we set
InitialDirectory to null, it will save it on Default Directory.
The issue is for HTC, the default directory is My Documents\My
Pictures and My Documents\My Videos both in Storage Card and Main
Memory... In Main Memory it works fine whereas in Storage Card it is
always saved under DCIM folder....
In WM5 HTC devices, the image and Video always getting saved to last
used directory... for eg., If I use Photo Mode first both Photo and
Video goes to My Pictures.
I can see HTC have custom camera implementation, since we support
multiple devices... I do not want any Device Specific changes on the
code... so reading from Registry is not an option for me.
In Emulator the pictures are always saved under \My Documents\My
Pictures(Video and Image) in Main Memory and under DCIM in Storage
Card.
So I would like to know is there a common way to find out the default
storage location for Camera Application.
Thanks,
Mohan- Hide quoted text -

- Show quoted text -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top