Windows 8 apps development

WP8 Developer Series–Getting to know Common API’s for Windows Phone 8 and Windows 8

November 4, 2012 .NET, .NET Framework, .NET Framework 4.5, All, C#.NET, Community, KnowledgeBase, Microsoft, Microsoft SDKs, Mobile-Development, MSDN, Portable Class Library, VisualStudio, VS2012, Windows, Windows 8, Windows 8 apps development, Windows Phone, Windows Phone 7.1 SDK, Windows Phone 8, Windows Phone 8.0 SDK, Windows Phone Development, Windows Phone SDK, Windows Store Development 2 comments

WindowsPhone8.svg Windows 8 logo and wordmark.svg

 

[ Windows 8 and Windows Phone 8 logos are trademarks of Microsoft ]

Windows Phone 8 is the second generation of the Windows Phone mobile operating system by Microsoft, officially announced the release to manufacture on 29th OCT 2012. Previous Windows Phone versions were all based on old CE kernel and with Windows Phone 8 – Microsoft made sure to shift the focus to a better kernel which can handle multi-core processing capabilities. That why Microsoft has choose Windows NT based kernel as the base kernel for Windows Phone 8.

Windows 8 and Windows Phone 8 are sharing same core level technology(from kernel to networking and driver support, all of that will be common on Windows 8 and Windows Phone 8), Microsoft calls it ‘Shared Core’. Windows Phone 8 will include more features aimed at the enterprise market, such as device management, BitLocker encryption (which is already included part of Windows 8), to facilitate all these common features – that is where ‘Shared Core’ comes in to picture.

If you would like to know further about Shared Core – suggest going through Joe Belfiore’s video

Having a Shared Core will save lots of development time – if we are targeting for both the platforms (Windows 8 and Windows Phone 8), that is where Microsoft has done the magic. Microsoft has made sure that development will be lot easier if you can leverage the same code base for both Windows and Windows Phone 8, with minor changes. This is really a good move as a Unified platform.

Developing Applications for Windows Phone 8 and Windows 8

Windows Phone 8 and Windows 8 share the same .NET Framework engine.You can leverage the same .NET engine in your XAML apps for Windows Phone 8 and Windows 8, and use sharing techniques to maximize code reuse for these apps on both platforms.

Now we will try to familiarize with common API’s on both platform which can save our time while developing applications targeting both.

Following part’s of this article is prepared based on the Original MSDN Source – Windows Phone 8 and Windows 8 platform comparison

1. Common Native API’s

As a Windows Phone developer now you can develop Games in C++  using new Windows 8 aligned Direct3D application model.

The set of native APIs that are common to Windows Phone 8 and Windows 8 are listed below:

  • DirectX 11.1
  • XAudio2
  • MediaEngine
  • STL
  • CRT
  • WinSock

Additional references:

2. Common Windows Runtime API’s

Windows Runtime is a technology first introduced in Windows 8 and which offers a core infrastructure, a common type system, and a standard programming model.

It is firat implemented in C++ and ported into C#, VB, C++, and JavaScript, so it is easy to consume with the language of your choice.

  • A subset of Windows Runtime is built natively into Windows Phone 8, with the functionality exposed to all supported languages.
  • This gives you the ability to use the same API for common tasks such as networking, working with sensors, processing location data, and implementing in-app purchase.
  • By using common Windows Runtime API in your app, you increase the potential to share code between your Windows Phone 8 and Windows Store apps to save time and improve the maintainability of your apps over time.

[Source – msdn]

The following list is the Windows Runtime APIs that are common to both platforms:

  • Networking
  • Sensors
  • Proximity
  • Storage
  • DataSaver/Connection Manager
  • Location
  • Touch
  • Online Identity
  • Keyboard
  • Launchers & Choosers
  • In-App Purchase
  • Sensors
  • Threading
  • Base Types/ Windows.Foundation

3. Similar UI Controls

Between Windows Phone 8 and Windows 8 XAML controls you will see lots of similarities. Same control name, class name etc – this makes the use of same code and controls on both the platforms. Developers will be familiar with both the platforms, and do not have to spend much time in porting from one to another.

  • The set of controls available on Windows Phone 8 is available in the System.Windows.Controls namespace.
  • The set of controls used on Windows 8 is in the Windows.UI.Xaml.Controls namespace.

You may read further about it on: XAML controls comparison between Windows Phone 8 and Windows 8.

4. Shared Engine

Windows 8 and Windows Phone 8 shares the same .NET Framework engine. You can leverage the same .NET engine in your XAML apps for Windows Phone 8 and Windows 8, and use sharing techniques to maximize code reuse for these apps on both platforms.

For more info, see .NET API for Windows Phone.

[ Content Source – msdn on Windows Phone 8 and Windows 8 platform comparison ]

 

Recommended Reads:

Concepts and architecture for Windows Phone

Maximize code reuse between Windows Phone 8 and Windows 8

XAML for Windows Phone

Learn about Windows Store app development

Learn about Developing apps for Windows Phone

XAML controls comparison between Windows Phone 8 and Windows 8.

What’s new in Windows Phone SDK 8.0

Develop Windows Store apps using Visual Studio 2012.

Windows 8 Camp in a Box–a set of Hands-on-labs, presentations, samples

October 4, 2012 .NET, All, C#.NET, JavaScript, JavaScript, KnowledgeBase, Microsoft, Microsoft SDKs, VisualStudio, VS2012, Windows, Windows 8, Windows 8 apps development, Windows SDK, Windows Store Development, WPF, XAML No comments

Windows 8 Camp in a Box is a set of  hands-on-labs, presentations, samples and resources from the Windows 8 camps.

The Windows 8 camps are free training events for developers ramping up on Windows Store app development.

To sign-up or join for a Windows camp(in your region), please visit http://devcamps.ms/windows.

We have two packages available as part of this hands-on-labs download:

  • WIN8JS_rtm.exe includes the hands-on labs for those using HTML + JavaScript.
  • WIN8CS_rtm.exe includes the hands-on-labs that use XAML + C#.

DOWNLOAD: Windows 8 Camp in a Box package

WCF Data Services Tools for Windows Store Apps RC

August 18, 2012 .NET, All, DataServices, KnowledgeBase, Microsoft, VisualStudio, VS2012, Windows, Windows 8, Windows 8 apps development, Windows Store Development No comments

The WCF Data Services Tools for Windows Store Apps installer extends the Add Service Reference experience with client-side OData support for Windows Store Apps in Visual Studio 2012.

  • The tooling will add references to NuGet packages capable of consuming OData services up to v3.
  • Updated runtime assemblies will be made available through the normal NuGet package update
  • This release provides support for OData v1-v3 services.
  • The installer also installs a version of DataSvcUtil.exe that can be used in Windows Store Apps.

Download WCF Data Service Tools for Windows Store Apps RC

Windows 8 UX Guidelines for Windows Store apps–PDF

August 16, 2012 .NET, .NET Framework, All, Microsoft, Microsoft SDKs, Silverlight, VisualStudio, VS2012, Windows, Windows 8, Windows 8 apps development, Windows SDK, Windows Store, Windows Store Development No comments

User experience guidelines from Microsoft for Windows Store apps (based on latest RTM release).

Download from Windows 8 UX Guidelines for Windows Store apps