Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Rory Does Windows Mobile Development - WM 5.0 Camera API

Download

Right click “Save as…”

The stuff we've looked at so far in this series has been cool, but my inner geek just freaks out when I think about the fact that I now have a managed API with which to integrate camera functionality into my applications.

Whether it's for business or fun, getting to code against a camera, especially when that camera is part of your phone, brightens the little dark lump of coal that is my heart.

Hopefully it'll do something similar for you, too.

In case you haven't figured it out yet, I think Windows Mobile 5.0 is, like, the neatest thing in the Milky Way galaxy. And maybe other galaxies, too.

Screencasts In This Series:

An Introduction To Windows Mobile Development

- Building a Simple Web Browser With the .NET CF 2.0

- A Simple Data Driven Windows Mobile App Using SQL Server Mobile

- Data Synching: Part One

- Data Synching: Part Two

- Windows Mobile 5.0: State Notification API

- Windows Mobile 5.0: Pocket Outlook Object Model

- Windows Mobile 5.0: Camera API

Tag:

Follow the Discussion

  • jsampsonPCjsampsonPC SampsonBlog.​com Sampson​Videos.com
    Rory, do some VB.NET PC stuff man Smiley I don't have a mobile device to code against like you big wealthy Softies Smiley
  • RoryRory Free Tibet While Supplies Last
    jsampsonPC wrote:
    Rory, do some VB.NET PC stuff man I don't have a mobile device to code against like you big wealthy Softies


    I'd be happy to Smiley

    I have other things planned that aren't Windows Mobile - WM is just my favorite topic, but there's other stuff on the way.

    Do you have any requests for specific topics?
  • BrianWBrianW woohooo
    Rory;

    Great set of podcasts!.  You explain things out well.

    I would like to see mobile development on older platform. HAve an
    older axim with 2003 on it. Also Outlook programming more sql.

    Thanks and keep up the good work!Smiley
  • Rory, very cool video, I enjoyed it and it blows me away the new API's that come with WM5.0.

    Do you know how to check if a device has a camera? As calling the API's without a camera throws an InvalidOperationException (of course!).

    Regards
    Simon.
  • It's OK, I have figure it out with SNAPI using Microsoft.WindowsMobile.Status.SystemState.CameraPresent property which returns a boolean.
    This stuff never ceases to amaze me!

    Regards
    Simon.
  • I was there was some way to use webcam for testing mobile 5.0 application in absence of a Mobile device.Sad
  • Thanks Rory,

    Great webcast!

    Is there a way of using the WM5 SDK to access the second camera on a WM5 device?

    I'm using an HTC Universal right now and would like to know how to reference the front facing camera

    Many thanks, keep up the webcasts....
  • Actually since you asked (a long time ago) there is one topic that I am interested in doing.

    A Phone Blocker (by phone number)

    I have been trying to find some papers on WindowsMobile.Telephony API abut having no luck. I can call a number but that is about it.

    Any chance on doing a webcasts on that?


    Also love the webcasts they got me up to speed on programming my first WM application with SqlCE.

    THANKS DUDE!!



  • hi rory,

    great screencast!

    is there a camera api for pcoket pc 2003?


  • Are there any programs that have been developed using this API?  (Besides HP's horrible Photosmart Camera Software)
  • Hi Rory,

    Very good work ! Im from Brazil and i'm developing a mobile application that need to capture some photos. Im using CameraCaptureDialog and works fine, but i need a greater resolution then size(240,320), i tryed to increase those values but the result is the same. How can i use a better resolution?

    Thanks !! By the way, wen youre caming to Brazil?

  • Man you are really good......I do like this kind of learning.
    If you do have the time.........please consider a screencast about directshow capabilities of WM 5.0 I would be very happy to figure out how that stuff is working.
    Thank you for your effort and keep up the good work.
    If you do come someday to Romania please let me now...
  • Hi Rory,

    is there a camera api for pcoket pc 2003?




  • Hi Rory,

    Is there anyway to make a bigger preview window?  On the Motorola Q, the preview is SO small, I hate it!  I'd like to have a full screen preview.  Your tutorial was helpful for everything else.

    Thanks in advance...

  • Rory,

    The camera API is very enticing. The "prompt to capture" limitation is the only thing holding me back. Is there any thing like the Windows User32.dll API that can issue SendKeys on WM5.0? I imagine you could hack your way around the prompting. My goal is a mobile app that will take pictures on its own and push them onto an FTP site. I will then write some Ajax page to continously check for a new photos so I can monitor my 'spy camera' on a PC.

    Probably Not,
    Paul

  • Man the autocapture idea would RoCK...

  • hey Rory nice tutorial for beginners but i wanted something in VC++ (lower level api's using directshow) to capture & stream videos
  • I used same code for my HP iPAQ rw6815 and picture looks like this: http://picasaweb.google.com/ralfeus/Temp/photo?authkey=Jp5P5B0lr6o#5073380512177029314

    Is it my model's problem or something else?
  • I am trying to use the cameraCaptureDialog on a Pidion BM 150-R running WM 5.0 with the Messaging and Security Feature Pack. I get an System.InvalidOperationException error. The value of SystemState.CameraPresent is False even though there is an embedded camera on the device and it is working.

    There was no registry value for \HKEY_LOCAL_MACHINE\System\State\Hardware\Camera. I added a DWord value for Camera = 1 Now SystemState.CameraPresent is True, but I still get the same InvalidOperationException error. Are there any other registry values that I can add to get this working with the camera API or is this a problem that the manufacturer of this device needs to fix?

  • Superb!

    I desire to develop application similar to webcam. I don't want the camera dialog appear, and PC can monitor via USB.

  • Hi Rory,

    Cool webcast! I especially liked the 999-9999-9999 bit. Big Smile Its always the simple things that make us laugh. Big Smile

    Anyhoo, I'm currently writing a WM6 app which needs to trap key presses. I'm wondering if its possible to trap a Camera button press?

    Can this be done through the camera API. Or do you know of a keycode for the camera button?

    Cheers,
    Dave.

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.