windows 8 platform & store

Post on 07-Nov-2014

779 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Windows 8 is Windows re-imagined. Join this session to learn about the new platform for building applications. Get an understanding of the platform design tenets, the programming language choices, and the integration points with the operating system and across Windows 8 apps.

TRANSCRIPT

The largest opportunity

for today’s Generation

of Application Developers

Windows 8 ships on October 26, 2012.

630M+ Windows 7 licenses have been sold

to date – all upgradeable to Windows 8.

Windows 8 represents the single biggest

developer opportunity for any platform.

Millions of developers are taking advantage

of this opportunity.

Will you?

YOUR IDEA.

YOUR APP.

30 DAYS.

You can develop a Windows 8 app in 30 days—

and we’re here to help.

Get Ready!

Week 1 App design

Week 2 Coding your app

Week 3 Making your app shine

Week 4 Get published

• 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.

Sign Up http://aka.ms/EdWin8

http://win8hackathonduke.eventbrite.com

demo

demo

App gets 5s to handle

suspend

App is not notified

before termination

Apps are notified when

they have been resumed

User

Launches

App

Splash

screen

Seamless data access

Data Roaming

Performant

Native platform

Capabilities driven

High isolation

demo

// get current product

var currentProduct = Windows.ApplicationModel.Store.CurrentProduct;

// get the license information

var licenseInformation = currentProduct.licenseInformation;

// check to see if the user has an active non-trial license

if (licenseInformation.isTrial) {

// user has trial version of the application// prompt them to purchase before so we can enable full functionality

currentProduct.requestAppPurchaseAsync().then(

function () {

// Purchase succeeded

});

}

private async void ConvertTrial()

{

var licenseInformation = CurrentApp.LicenseInformation;

licenseInformation.LicenseChanged += licenseInformation_LicenseChanged;

if (licenseInformation.IsTrial)

await CurrentApp.RequestAppPurchaseAsync();

}

void licenseInformation_LicenseChanged()

{

if (CurrentApp.LicenseInformation.IsActive)

{

//Enable features..

}

}

// can’t do in-app purchase in trial mode, must convert first

if (!appLicensingInformation.isTrial) {//load the listings with all the products

currentApp.loadListingInformationAsync().then(

function (listing) {

//lookup a specific product

var product1 = listing.productListings.lookup("product1");

if (!product1.isActive) { // purchase

currentApp.requestProductPurchaseAsync("product1“, false ).then(

enableProduct1 );

}

});

var licenseInformation = CurrentApp.LicenseInformation;

var productLicense = licenseInformation.ProductLicenses["product1"];

if (!productLicense.IsActive && licenseInformation.IsActive )

{

try

{

await CurrentAppSimulator.RequestProductPurchaseAsync("product1“, false);

// No exception: enable product1

}

catch (Exception)

{

//product 1 was not purchased

}

}

321

www.windowsadvertising.com

31 2

www.windowsadvertising.com

As of March 2012, IDC

A new Metro style UI where touch is a first-class citizen along with full mouse-and-keyboard support

New development models built on WinRT, including native support for HTML/CSS/JS, C#/XAML, C++/DirectX

Designed from the chipset up for multiple form-factors – tablets, laptops, desktops & all-in-ones

The Windows Store on every device with a full

commerce platform and flexibility

top related