universal apps for windows

46
By Shahed Chowdhuri Sr. Technical Evangelist Universal Apps for Windows Windows 8.1 Windows Phone 8.1 … and more! @shahedC WakeUpAndCode.com

Upload: munin

Post on 05-Jan-2016

54 views

Category:

Documents


0 download

DESCRIPTION

Universal Apps for Windows. Windows 8.1  Windows Phone 8.1  … and more!. By Shahed Chowdhuri Sr. Technical Evangelist. WakeUpAndCode.com. @shahedC. Thank Our Sponsors without whom Today is not Possible. Platinum. Host. Bronze. Housekeeping…. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Universal  Apps for Windows

By Shahed ChowdhuriSr. Technical Evangelist

Universal Apps for WindowsWindows 8.1 Windows Phone 8.1 … and more!

@shahedC

WakeUpAndCode.com

Page 2: Universal  Apps for Windows

Thank Our Sponsors without whom Today is not Possible

Platinum Host

Bronze

Page 3: Universal  Apps for Windows

Housekeeping…

• Respect your speakers and fellow attendees:Set mobile devices to vibrate or silent

• Fill out session evaluations• You must be present to win at the

wrap-up

Page 4: Universal  Apps for Windows

Coming Up…

Hands-On WorkshopDate: Thu Oct 16, 2014Time: 6:30pm – 8:30pmVenue: Microsoft – RestonAddress: 12012 Sunset Hills Rd, Reston VAInstructions: Come up to Room 3062

URL: http://tinyurl.com/msdcmeetup

Page 5: Universal  Apps for Windows

Agenda

Introduction

> Visual Studio> Alternative Tools

Publishing

Page 6: Universal  Apps for Windows

My BackgroundPeriod Background/Experience

1997 – present

Microsoft web/software development

2011 XNA games on XBLIG• 2D Math Panic• Angry Zombie Ninja Cats

2012 Tools for XNA developers• XBLIG Sales Data Analyzer (OnekSoftLabs.com)• XNA Basic Starter Kit (CodePlex)

Online: http://facebook.com/OnekSoftGames

Page 7: Universal  Apps for Windows

My Background (continued)Period Background/Experience

2013 • Ninja Cat Runner on Win8, WP8, Web (Construct 2)• Video Q&A with MS Tech Evangelist Frank La Vigne• Founder/Admin of FB groups: Construct2, Xbox One & Unity Indie

Devs• Started Public Speaking in DC area and East Coast

2014 • Started Public Speaking on Indie Game Development• Joined Microsoft as a Sr. Technical Evangelist• Gallant Glider on Win8, WP8, Web (Construct 2 Universal App)

Video Q&A: http://youtu.be/lRjrQPvVOpo MVA: http://aka.ms/DevGames-Const2

Page 8: Universal  Apps for Windows

Official Xbox Magazine

Source: Official Xbox Magazine, March 2014, Page 65

`

Page 9: Universal  Apps for Windows

Tools & Technologies

+

Page 10: Universal  Apps for Windows

Introduction

Page 11: Universal  Apps for Windows

What is a Universal App?

"Apps that are tailored to people with disabilities"

"Apps that are automatically multi-lingual and culture adherent"

"Apps that can run on all platforms (iOS, Android, Windows)"

"A single app package that will work across Microsoft devices“

None of the Above?

Page 12: Universal  Apps for Windows

Universal Apps for Windows

Universal Apps for Windows• 1 solution

• 1 shared project (no binary output)• 1 project per platform (separate binary output per platform)

• Windows, Windows Phone, Xbox One (coming soon!)

Ref: http://dev.windows.com/en-us/develop/Building-universal-Windows-apps

Page 13: Universal  Apps for Windows

Benefits of Universal Apps• Pricing structure – Match Windows Phone pricing on Windows 8

• Shared in-app purchases – Buy IAPs only once, on either platform.

• Install across devices – Buy app only once, own across platforms

• Shared revenue model – Keep 70% of revenue

• Unified ad-units for Windows Phone and Windows apps

Ref: http://www.wpcentral.com/what-is-a-universal-windows-app

Page 14: Universal  Apps for Windows

Streamlined Development

Page 15: Universal  Apps for Windows

Visual Studio

Page 16: Universal  Apps for Windows

VS 2013 Update 2+

• C# and XAML• HTML5 & JavaScript• C++ and DirectX

Page 17: Universal  Apps for Windows

Creating a Universal Project

Page 18: Universal  Apps for Windows

New Project

Windows 8.1 project

Windows Phone 8.1 project

Shared project

Page 19: Universal  Apps for Windows

Existing Project

Windows 8.1 project?

Right-click Add Windows Phone 8.1…

Windows Phone 8.1 project?

Right-click Add Windows 8.1…

Page 22: Universal  Apps for Windows

Sharing Code Across Universal Apps

Reference:• http://marcominerva.wordpress.com/2014/04/22/how-to-share-code-among-different-universal-windows-apps/

“This type of project has been improved in Visual Studio 2013 Update 2 and now, if we target Windows 8.1 and Windows Phone 8.1, we’ll be able to use all the common APIs.

However, PCL produces a single binary that works as is in all the supported projects. Handling divergent APIs requires using higher-level abstractions, such as dependency injection or IoC containers. We can’t simply use conditional if to define platform specific code.”

How about using a Portable Class Library (PCL)?

Page 23: Universal  Apps for Windows

Shared Reference Project

2. Add Project to Solution:

1. Download & Install “Shared Project Reference Manager” from MSDN:• http://visualstudiogallery.msdn.microsoft.com/315c13a7-2787-4f57-bdf7-adae6ed54450

3. Add Class Library for each platform (Win 8.1 & WP 8.1)4. Add Shared Project Reference to each Class Library.

Ref: http://marcominerva.wordpress.com/2014/04/22/how-to-share-code-among-different-universal-windows-apps/

Page 24: Universal  Apps for Windows

Shared References in Solution Explorer

Class Library for Windows 8.1with reference to Shared project

Class Library for Windows Phone 8.1with reference to Shared project

Shared project for Class Libraries

Page 25: Universal  Apps for Windows

Demo

Page 26: Universal  Apps for Windows

Alternative Tools

Page 27: Universal  Apps for Windows

App Studio

App Studio• Link: https://appstudio.windows.com/

Page 28: Universal  Apps for Windows

App Studio in 4 Steps (from App Studio website)

App Studio Tutorial• Link:

http://social.technet.microsoft.com/wiki/contents/articles/24933.create-a-universal-application-with-windows-app-studio.aspx

Page 29: Universal  Apps for Windows

Build Your App in Your Browser

Click FinishWhen Done

Page 30: Universal  Apps for Windows

Generate & Download

Download Source Code

Page 31: Universal  Apps for Windows

Demo

Page 33: Universal  Apps for Windows

Construct 2

More information:• Index Page: http://WakeUpAndCode.com/construct2 • Exporting & Publishing:

http://wakeupandcode.com/construct-2-exporting-and-publishing-to-web-windows-8-and-windows-phone-8/

Page 34: Universal  Apps for Windows

Unity

More Information• Index Page: http://WakeUpAndCode.com/unity • Universal Apps in Unity: http

://blogs.unity3d.com/2014/08/07/introducing-universal-windows-applications-in-unity/

Page 35: Universal  Apps for Windows

Publishing

Page 36: Universal  Apps for Windows

Open Developer Account

Sign up for a developer account on:http://dev.windows.com

1. Click “Get Started”2. Click “Sign up”

Page 37: Universal  Apps for Windows

Associate App with the Store

Right-click project,… then select Store

Page 38: Universal  Apps for Windows

Create Store Graphics

Page 39: Universal  Apps for Windows

Create App Package

Create App Packages…

Page 40: Universal  Apps for Windows

Create Logo/Splash Graphics

Page 41: Universal  Apps for Windows

• Submitting to the Windows Store

Publish App Package

Page 42: Universal  Apps for Windows

• Submitting to the Windows Phone Store

Publish on Windows Phone

Page 43: Universal  Apps for Windows

Questions?

Page 45: Universal  Apps for Windows

More info:• http://WakeUpAndCode.com/bizs

park

BizSpark

Options:(a)Get event code from flyerOR(b)Contact me for pre-approved code