Rory Does Windows Mobile Development - WM 5.0 Camera API

Sign in to queue

Description

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

Embed

Download

Download this episode

The Discussion

  • User profile image
    jsampsonPC
    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
  • User profile image
    Rory
    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?
  • User profile image
    BrianW
    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
  • User profile image
    Simon Hart
    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.
  • User profile image
    Simon Hart
    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.
  • User profile image
    Adnan Siddiqi
    I was there was some way to use webcam for testing mobile 5.0 application in absence of a Mobile device.Sad
  • User profile image
    Acapulco Rolf
    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....
  • User profile image
    blacklocist
    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!!



  • User profile image
    FusionOne
    hi rory,

    great screencast!

    is there a camera api for pcoket pc 2003?


  • User profile image
    aewold
    Are there any programs that have been developed using this API?  (Besides HP's horrible Photosmart Camera Software)
  • User profile image
    Mauricio_dbi

    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?

  • User profile image
    Melcutz
    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...
  • User profile image
    scalcionegi​anfranco
    Hi Rory,

    is there a camera api for pcoket pc 2003?




  • User profile image
    lkevinl
    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...

  • User profile image
    punderwo

    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

  • User profile image
    a5mOOthONE

    Man the autocapture idea would RoCK...

  • User profile image
    keyur47831
    hey Rory nice tutorial for beginners but i wanted something in VC++ (lower level api's using directshow) to capture & stream videos
  • User profile image
    ralfeus
    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?
  • User profile image
    smaggi

    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?

  • User profile image
    greathendry

    Superb!

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

  • User profile image
    DaveShiel

    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.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.