Dave is a Principal Technical Evangelist for Microsoft focused on Windows, Windows Phone, Windows Azure and the Web. Based out of the Greater Philadelphia Area.
This is the third in a series of short screencasts that will teach you Windows 8 Metro Style App development in a fun and immersive way via casual gaming. This screencast covers accessing the Camera in your Windows 8 Metro Style App using HTML and JavaScript.
You can watch the video on Channel 9 here:
Slides can be downloaded here:
Via Davedev.net…
Those of you who have been following my blog for a while are probably familiar with what DoodlePad is. For those new, DoodlePad is a fun little sketch app I wrote for my kids when Windows Phone was launched in the fall of 2010. It has done fairly well (at least by my own standards) since launch with over 35,000 downloads globally for both the free and paid versions.
DoodlePad was never intended to be a full featured art application but more of an easy to use, simple UI that anyone could pick up and sketch or take pictures with. The reviews have been largely positive with the negative reviews revolving around drawing performance. Unfortunately, as you will see in the code, the drawing performance comes form the Ink Presenter class in the Windows Phone Runtime itself. Since I chose to go with the native Silverlight capabilities rather than an XNA approach there wasn’t anything I could do about performance without a re-write.
The app itself is still making money but I knew in my heart I had no intention of going back and rewriting it. I also switched roles at Microsoft last year from Windows Phone to a Technology Evangelist for Windows 8. Technically speaking I’ve been going much deeper on the JavaScript and HTML5 side of the house lately and to take on a full XAML/C# project, especially for an app that is towards end of life, didn’t seem worth investing in. So why not give the code back to you, the community, as a way to get started with your own apps! I’m continually impressed by what I see developers doing with Windows Phone and if my code helps them with their app than that’s worth more than any money I’d make each month.
Thanks to Microsoft’s generous moonlighting policy for employees writing Windows Phone applications I own all the code. So I’ve chose to release it under an Apache 2.0 license and post it up to Github here.
I am not including a NOTICE file with the Apache license so you are pretty much free to do with the code what you want. If you want to thank me you can include a link to my twitter (http://twitter.com/thedavedev) in your code or app credits but totally not required. I’ve also included all of my cusotm icons as Expression Design files so if you have been looking for additional resources for your apps feel free to re-use. Enjoy!
- Dave
The release of Windows 8 is on the horizon, and soon millions of people will be looking for Windows 8 apps. Now’s the time to make sure your app is ready for them.
Begin your 30-day journey to create a great Windows 8 Metro style app. Get started at www.generationapp.com and receive:
· Insider tips and tricks on Windows 8 application development.
· Personal on-the-phone access to a Windows 8 architect*.
· An exclusive one-on-one Metro style design consultation*.
· An opportunity to get expert help from a Microsoft Services Engineer at an App Excellence Lab.
Your new Windows 8 app could be mere days away.
* Offer good only to legal residents in the 50 United States & D.C., age 18 or older to hobbyists, professionals or developers in the field of software tech who sign up for building a Windows 8 application on www.generationapp.com. Offer limited to 250 design consultations per month and 500 technical review consultations per month, on a first come first served basis. Limit of one session of each offer type per person. This offer is non-transferable and cannot be combined with any other offer. This offer ends when supplies are exhausted, and is not redeemable for cash.
I recently paved one of my demo machines and was running a fresh build of Visual Studio 2012 Ultimate RC. I came across something interesting I thought I would share in order to save you time. In the past I have been running Visual Studio 2012 Express RC and noticed in Ultimate things are in different locations. For example, in Express you get a Store menu at the top but in Ultimate you need to go to the project properties to pull up the Store Menu.
When I tried to force a suspend on an app I was running I noticed the Suspend/Resume/Terminate toolbar icons were missing! I only had pause/stop debugging like you would get in all Visual Studio projects.
I right clicked and opened up my ToolBar options menu and found a Debug Location option.
I then started debugging again and low and behold I now had Suspend/Resume/Terminate next to my process!
After doing a little web research I found an MSDN article here that talks about the menu item. It doesn’t tell you to turn on the Debug Location Toolbar but it does show a screenshot. I imagine this is due to the layout style you chose when first running Visual Studio Ultimate. Express will always be set up in the best layout for Metro Style Apps where as my Ultimate installation was set up originally for Web Development. In any event I hope this tip helps you out if you run into the same issues.
As always if you decide to write a Windows 8 app and want to get into the Windows Store I would love to hear about it! You may also want to check out my previous Windows 8 Metro Style Development Tips: