Tuesday 19 January 2016

Create Windows Phone apps that access SharePoint 2013 : Part 1

SharePoint 2013 provides an exciting opportunity for developers to build mobile apps that travel with users, are interactive and attractive, and are available whenever and wherever users want to work with them. You can combine Windows Phone 8 and Windows Phone 7 applications with on-premises SharePoint services and applications, or with remote SharePoint services and applications that run in the cloud (such as those that use SharePoint Online) to create powerful applications that extend the functionality beyond the traditional desktop or laptop, and into a truly portable and much more accessible environment.
The new mobility features offered by SharePoint 2013 are built on existing Microsoft tools and technologies, such as SharePoint, Windows Phone, Visual Studio, and Silverlight. Developers who are already familiar with those technologies and their related tools will be able to create SharePoint-powered mobile apps for Windows Phone without a steep learning curve. In this section, we explore some of the types of SharePoint-powered mobile apps you can build for Windows Phone 8 and Windows Phone 7 and the most common ways to customize those applications. SharePoint 2013 provides a framework and tools for developers, including Visual Studio 2010 project templates, to create mobile solutions that interact with SharePoint data both in on-premises SharePoint installations and in the cloud, using SharePoint Online. Figure 1 shows how a simple list application could look on Windows Phone.
Figure 1. SharePoint list items in a Windows Phone app

SharePoint list items in a Windows Phone app

System Requirements :

To develop SharePoint Add-ins for use on Windows Phone 8, you need to set up your development tools on a computer that is running Windows 8 64-bit (x64) client versions or Windows 8 Pro. The Windows Phone 8 Emulator requires Windows 8 Pro, and requires a processor that supports Second Level Address Translation (SLAT).
  1. On a computer with a supported client operating system, install Windows Phone SDK 8.0. The Windows Phone Software Development Kit (SDK) 8.0 provides you with the tools that you need to develop apps and games for Windows Phone 8 and Windows Phone 7.5.
    The Windows Phone SDK 8.0 is a full-featured development environment to use for building apps and games for Windows Phone 8.0 and Windows Phone 7.5. The Windows Phone SDK provides a stand-alone Visual Studio Express 2012 edition for Windows Phone or works as an add-in to Visual Studio 2012 Professional, Premium or Ultimate editions. With the SDK, you can use your existing programming skills and code to build managed or native code apps. In addition, the SDK includes multiple emulators and additional tools for profiling and testing your Windows Phone app under real-world conditions                   Note :
    If your computer meets the hardware and operating system requirements, but does not 
    meet the requirements for the Windows Phone 8 Emulator, the Windows Phone
     SDK 8.0 will install and run. However, the Windows Phone 8 Emulator will not function
     and you will not be able to deploy or test apps on the Windows Phone 8 Emulator.

     For information about the system requirements for running the Windows Phone Emulator,
     see Setup and System Requirements for Windows Phone Emulator.
  2. The SharePoint SDK for Windows Phone installs two Silverlight for Windows Phone templates (in addition to those installed by the Windows Phone SDK): the Windows Phone Empty SharePoint Application template and the Windows Phone SharePoint List Application template. The SDK also installs SharePoint CSOM libraries, an authentication library, and Windows Phone project templates, and it now supports NTLM authentication. You can use the bundled APIs and templates to build Windows Phone 8 applications against SharePoint 2013.
    Additionally, the SharePoint SDK for Windows Phone installs several supporting run-time assemblies (in %ProgramFiles(x86)%\Microsoft SDKs\SharePoint\v15.0\Phone\v8.0\Libraries for a standard installation).
    • Microsoft.SharePoint.Client.Phone.dll
    • Microsoft.SharePoint.Client.Phone.Runtime.dll
    • Microsoft.SharePoint.Client.Phone.Auth.UI
    • Microsoft.SharePoint.Phone.Application.dll                                                                                                    
    • Note
      The templates in the SharePoint SDK for Windows Phone are currently available for C# projects only.

For more information about the templates in SharePoint SDK for Windows Phone, see Overview of Windows Phone SharePoint 2013 application templates in Visual Studio.

Configuring Windows Phone SDK 7.1

To develop SharePoint Add-ins for use on Windows Phone 7, you need to set up your development tools on a computer that is running Windows 7 (32-bit or 64-bit) or Windows Vista Service Pack 2 (32-bit or 64-bit). The Windows Phone Software Development Kit (SDK) 7.1 is not supported on Windows Server 2008 or on Windows XP.
  1. On a computer with a supported client operating system, install Windows Phone SDK 7.1.
    Note
    An earlier version of the Windows Phone SDK was named the Windows Phone Developer Tools.
    The Windows Phone SDK installs Microsoft Visual Studio 2010 Express for Windows Phone, the Windows Phone Emulator, XNA Game Studio, and Microsoft Expression Blend for Windows Phone. Visual Studio 2010 Express for Windows Phone is a suitable development environment for most Windows Phone solutions. You can also use Visual Studio 2010 Professional as your preferred development environment, but you still need to install the Windows Phone SDK, which installs the necessary add-ins to Visual Studio. (The Windows Phone SDK is not currently supported for use with Visual Studio 2012.)
    For information on additional system requirements and instructions for installing the Windows Phone SDK, see Installing the Windows Phone SDK. For information about the system requirements for running the Windows Phone Emulator, see Setup and System Requirements for Windows Phone Emulator.
  2. The SharePoint SDK for Windows Phone installs two Silverlight for Windows Phone templates (in addition to those installed by the Windows Phone SDK): the Windows Phone Empty SharePoint Application template and the Windows Phone SharePoint List Application template.
    Additionally, the SharePoint SDK for Windows Phone installs several supporting run-time assemblies (in %ProgramFiles(x86)%\Microsoft SDKs\SharePoint\v15.0\Phone\v7.1\Libraries for a standard installation).
    • Microsoft.SharePoint.Client.Phone.dll
    • Microsoft.SharePoint.Client.Phone.Runtime.dll
    • Microsoft.SharePoint.Client.Phone.Auth.UI
    • Microsoft.SharePoint.Phone.Application.dll
    Note
    The templates in the SharePoint SDK for Windows Phone are currently available for C# projects only.

No comments: