What is windows phone platform

What’s a Universal Windows Platform (UWP) app?

UWP is one of many ways to create client applications for Windows. UWP apps use WinRT APIs to provide powerful UI and advanced asynchronous features that are ideal for internet-connected devices.

To download the tools you need to start creating UWP apps, see Get set up, and then write your first app.

Where does UWP fit in the Microsoft development story?

UWP is one choice for creating apps that run on Windows 10 devices, and can be combined with other platforms. UWP apps can make use of Win32 APIs and .NET classes (see API Sets for UWP apps, Dlls for UWP apps, and .NET for UWP apps).

The Microsoft development story continues to evolve, and along with initiatives such as WinUI, MSIX, and Project Reunion, UWP is a powerful tool for creating client apps.

Features of a UWP app

  • Secure: UWP apps declare which device resources and data they access. The user must authorize that access.
  • Able to use a common API on all devices that run Windows 10.
  • Able to use device specific capabilities and adapt the UI to different device screen sizes, resolutions, and DPI.
  • Available from the Microsoft Store on all devices (or only those that you specify) that run on Windows 10. The Microsoft Store provides multiple ways to make money on your app.
  • Able to be installed and uninstalled without risk to the machine or incurring «machine rot».
  • Engaging: use live tiles, push notifications, and user activities that interact with Windows Timeline and Cortana’s Pick Up Where I Left Off, to engage users.
  • Programmable in C#, C++, Visual Basic, and Javascript. For UI, use WinUI, XAML, HTML, or DirectX.

Let’s look at these in more detail.

Secure

UWP apps declare in their manifest the device capabilities they need such as access to the microphone, location, Webcam, USB devices, files, and so on. The user must acknowledge and authorize that access before the app is granted the capability.

A common API surface across all devices

WindowsВ 10 introduces the Universal Windows Platform (UWP), which provides a common app platform on every device that runs WindowsВ 10. The UWP core APIs are the same on all Windows devices. If your app only uses the core APIs, it will run on any WindowsВ 10 device no matter whether you are targeting a desktop PC, Xbox, Mixed-reality headset, and so on.

A UWP app written in C++ /WinRT or C++ /CX has access to the Win32 APIs that are part of the UWP. These Win32 APIs are implemented by all WindowsВ 10 devices.

Extension SDKs expose the unique capabilities of specific device types

If you target the universal APIs, then your app can run on all devices that run Windows 10. But if you want your UWP app to take advantage of device-specific APIs, then you can do that, too.

Extension SDKs let you call specialized APIs for different devices. For example, if your UWP app targets an IoT device, you can add the IoT extension SDK to your project to target features specific to IoT devices. For more information about adding extension SDKs, see the Extension SDKs section in Programming with extension SDKs.

You can write your app so that you expect it to run only on a particular type of device, and then limit its distribution from the Microsoft Store to just that type of device. Or, you can conditionally test for the presence of an API at runtime and adapt your app’s behavior accordingly. For more information, see the Writing code section in Programming with extension SDKs.

The following video provides a brief overview of device families and adaptive coding:

Adaptive controls and input

UI elements respond to the size and DPI of the screen the app is running on by adjusting their layout and scale. UWP apps work well with multiple types of input such as keyboard, mouse, touch, pen, and Xbox One controllers. If you need to further tailor your UI to a specific screen size or device, new layout panels and tooling help you design UI that can adapt to the different devices and form factors that your app may run on.

Windows helps you target your UI to multiple devices with the following features:

  • Universal controls and layout panels help you to optimize your UI for the screen resolution of the device. For example, controls such as buttons and sliders automatically adapt to device screen size and DPI density. Layout panels help adjust the layout of content based on the size of the screen. Adaptive scaling adjusts to resolution and DPI differences across devices.
  • Common input handling allows you to receive input through touch, a pen, a mouse, a keyboard, or a controller such as a Microsoft Xbox controller.
  • Tooling that helps you to design UI that can adapt to different screen resolutions.

Some aspects of your app’s UI will automatically adapt across devices. Your app’s user-experience design, however, may need to adapt depending on the device the app is running on. For example, a photo app could adapt its UI when running on a small, handheld device to ensure that usage is ideal for single-handed use. When a photo app is running on a desktop computer, the UI should adapt to take advantage of the additional screen space.

Читайте также:  Linux скопировать структуру каталогов без файлов

There’s one store for all devices

A unified app store makes your app available on WindowsВ 10 devices such as PC, tablet, Xbox, HoloLens, Surface Hub, and Internet of Things (IoT) devices. You can submit your app to the store and make it available to all types of devices, or only those you choose. You submit and manage all your apps for Windows devices in one place. Have a C++ desktop app that you want to modernize with UWP features and sell in the Microsoft store? That’s okay, too.

UWP apps integrate with Application Insights for detailed telemetry and analytics—a crucial tool for understanding your users and improving your apps.

UWP apps can be packaged with MSIX and distributed via the Microsoft Store, or in other ways. MSIX allows apps to be updated no matter how they are distributed, see Update non-Store published app packages from your code.

Monetize your app

You can choose how you’ll monetize your app. There are a number of ways to make money with your app. All you need to do is choose the one that works best for you, for example:

  • A paid download is the simplest option. Just name the price.
  • Trials let users try your app before buying it, providing easier discoverability and conversion than the more traditional «freemium» options.
  • Sale prices to incentivize users.
  • In-app purchases.

Deliver relevant, real-time info to your users to keep them coming back

There are a variety of ways to keep users engaged with your UWP app:

  • Live tiles and lock screen tiles that show contextually relevant and timely info from your app at a glance.
  • Push notifications that bring real-time alerts to your user’s attention.
  • User Activities allow users to pick up where they left off in your app, even across devices.
  • The Action Center organizes notifications from your app.
  • Background execution and triggers bring your app into action when the user needs it.
  • Your app can use voice and Bluetooth LE devices to help users interact with the world around them.
  • Integrate Cortana to add voice command capability to your app.

Use a language you already know

UWP apps use the Windows Runtime, the native API provided by the operating system. This API is implemented in C++ and is supported in C#, Visual Basic, C++, and JavaScript. Some options for writing UWP apps include:

  • XAML UI and C#, VB, or C++
  • DirectX UI and C++
  • JavaScript and HTML
  • WinUI

Get set up

Check out Get set up to download the tools you need to start creating apps, and then write your first app.

Design your app

The Microsoft design system is named Fluent. The Fluent Design System is a set of UWP features combined with best practices for creating apps that perform beautifully on all types of Windows-powered devices. Fluent experiences adapt and feel natural on devices from tablets to laptops, from PCs to televisions, and on virtual reality devices. See The Fluent Design System for UWP apps for an introduction to Fluent Design.

Good design is the process of deciding how users will interact with your app, in addition to how it will look and function. User experience plays a huge part in determining how happy people will be with your app, so don’t skimp on this step. Design basics introduces you to designing a Universal Windows app. See the Introduction to Universal Windows Platform (UWP) apps for designers for information on designing UWP apps that delight your users. Before you start coding, see the device primer to help you think through the interaction experience of using your app on all the different form factors you want to target.

In addition to interaction on different devices, plan your app to embrace the benefits of working across multiple devices. For example:

Design your workflow using Navigation design basics for UWP apps to accommodate mobile, small-screen, and large-screen devices. Lay out your user interface to respond to different screen sizes and resolutions.

Consider how you’ll accommodate multiple kinds of input. See the Guidelines for interactions to learn how users can interact with your app by using Cortana, Speech, Touch interactions, the Touch keyboard and more. Or, see the Guidelines for text and text input for more traditional interaction experiences.

Add services

  • Use cloud services to sync across devices.
  • Learn how to connect to web services to support your app experience.
  • Include Push notifications and in-app purchases in your planning. These features should work across devices.

Submit your app to the Store

Partner Center lets you manage and submit all of your apps for Windows devices in one place. See Publish Windows apps and games to learn how to submit your apps for publication in the Microsoft Store.

New features simplify processes while giving you more control. You’ll also find detailed analytic reports combined payout details, ways to promote your app and engage with your customers, and much more.

More advanced topics

  • Learn how to use User Activities so that user activity in your app appear in Windows Timeline and Cortana’s Pick Up Where I Left Off feature.
  • Learn how to use Tiles, badges, and notifications for UWP apps.
  • For the full list of Win32 APIs available to UWP apps, see API Sets for UWP apps and Dlls for UWP apps.
  • See Universal Windows apps in .NET for an overview of writing .NET UWP apps.
  • For a list of .NET types that you can use in a UWP app, see .NET for UWP apps
  • Compiling apps with .NET Native
  • Learn how to add modern experiences for Windows 10 users to your existing desktop app and distribute it in the Microsoft Store with the Desktop Bridge.

How the Universal Windows Platform relates to Windows Runtime APIs

If you’re building a Universal Windows Platform (UWP) app, then you can get a lot of mileage and convenience out of treating the terms «Universal Windows Platform (UWP)» and «Windows Runtime (WinRT)» as more or less synonymous. But it is possible to look under the covers of the technology, and determine just what the difference is between those ideas. If you’re curious about that, then this last section is for you.

Читайте также:  Do rooms need windows

The Windows Runtime, and WinRT APIs, are an evolution of Windows APIs. Originally, Windows was programmed via flat, C-style Win32 APIs. To those were added COM APIs (DirectX being a prominent example). Windows Forms, WPF, .NET, and managed languages brought their own way of writing Windows apps, and their own flavor of API technology. The Windows Runtime is, under the covers, the next stage of COM. At the actual application binary interface (ABI) layer, its roots in COM become visible. But the Windows Runtime was designed to be callable from a great range of different programming languages. And callable in a way that’s very natural to each of those languages. To this end, access to the Windows Runtime is made available via what are known as language projections. There is a Windows Runtime language projection into C#, into Visual Basic, into standard C++, into JavaScript, and so on. Furthermore, once packaged appropriately (see Desktop Bridge), you can call WinRT APIs from an app built in one of a great range of application models: Win32, .NET, WinForms, and WPF.

And, of course, you can call WinRT APIs from your UWP app. UWP is an application model built on top of the Windows Runtime. Technically, the UWP application model is based on CoreApplication, although that detail may be hidden from you, depending on your choice of programming language. As this topic has explained, from a value proposition point of view, the UWP lends itself to writing a single binary that can, should you choose, be published to the Microsoft Store and run on any one of a great range of device form factors. The device reach of your UWP app depends on the subset of Windows Runtime APIs that you limit your app to calling, or that you call conditionally.

Hopefully, this section has been successful in describing the difference between the technology underlying Windows Runtime APIs, and the mechanism and business value of the Universal Windows Platform.

Сравнительный обзор мобильных платформ Android и Windows Phone

В приложениях и играх для мобильной платформы заключаются разнообразнейшие возможности современных мобильных устройств с сенсорными дисплеями. Это различные игры, приложения для работы, отдыха, развития, программные клиенты полезных интернет-сервисов и т.п.

Ниже представлен сравнительный обзор идеологических основ мобильной индустрии – конкурирующих мобильных операционных систем Android и Windows Phone. Итак, какие же преимущества и недостатки можно отметить у этих двух популярнейших мобильных платформ? Android или Windows Phone – какая из платформ лучше?

Первое, что бросается в глаза любому пользователю, взявшему в руки смартфон на базе Windows Phone – это стилизованные плитки. В чем суть этих плиток? Это замаскированные так называемые живые тайлы (Live Tiles), которые являют собой эдакий эксклюзив от Microsoft, яркую отличительную особенность платформы Windows Phone. Почему же эти тайлы «живые»? Тайлы – это не что иное, как несколько видоизмененные виджеты и ярлыки приложений и игр с той особенностью, что их актуальная информация (прогноз погоды, курсы валют, новые сообщения, игровые уведомления и т.п.) отображается прямо на плитке.

Платформу Android в плане интерфейса можно на сегодняшний день смело называть чистой классикой. Взяв в руки новый Android-смартфон, пользователь увидит привычные ярлыки приложений и игр, строго выстроившиеся в ряд. Но такое положение дел может быстро измениться. С помощью различных приложений-лаунчеров, в разнообразии которых нельзя упрекнуть магазин приложений для Android – Google Play Market, интерфейс платформы можно в считанные секунды изменить на любой пользовательский вкус, на любую тематику обоев для рабочего стола, в том числе и подобрать интересный дизайн с виджетами, отображающими актуальную информацию приложений и игр.

Итак, какая из платформ лучше в плане интерфейса? Безусловно, многим понравятся живые тайлы Windows Phone, поскольку эта идея компании Microsoft действительно заслуживает отдельных похвал. Однако на Android можно установить любой дизайнерский шедевр от разработчика приложения-лаунчера и изменять интерфейс платформы хоть по нескольку раз в день. Windows Phone же такой возможности не имеет, интерфейс этой платформы изменить нельзя. Живые тайлы пользователь будет наблюдать все время пользования смартфоном на базе Windows Phone.

Потому в плане интерфейса победа за платформой Android – именно за ее доступность и открытость для постоянных изменений внешнего вида.

2. Настройка платформы под предпочтения пользователя

В плане возможности настройки мобильной платформы под пользовательские нужды участники обзора – Android и Windows Phone – имеют принципиально отличающиеся позиции.

Android – это операционная система с открытым исходным кодом (ядро Линукс), потому ее вариантов с вмешательством сторонних разработчиков, к примеру, со стороны производителей мобильной техники может быть очень много. Платформа Android открыта, это позволяет вносить свои коррективы в ее настройки не только производителям смартфонов и планшетов, но и самим пользователям – менять интерфейс, устанавливать любые приложения и игры, в том числе и в обход Google Play Market, скачивая приложения и игры со сторонних ресурсов — торрент-трекеров, сайтов, посвященных тематике Android и т.п.

Получение root-прав на Android открывает пользователям невероятные перспективы – например, любую продвинутую экшн-игру, стоящую на Google Play Market приличных денег, пользователь сможет установить совершенно бесплатно, обратившись к упомянутым выше сторонним ресурсам.

Открытость кода платформы Android позволяет ей быть гибкой, выполнять широчайший спектр задач в интересах пользователя, используя при этом разнообразные программные инструменты.

Windows Phone – это закрытая операционная система, которая не предусматривает вмешательства в ее код. В этом плане компания Microsoft решила пойти по пути компании Apple, ограничив свое детище от любого стороннего вмешательства. Windows Phone не подается настройке под предпочтения пользователя. Удел пользователей – довольствоваться лишь тем, что предусмотрел софтверный гигант.

Потому вторая победа присуждается снова Android.

3. Безопасность и стабильность работы

Читайте также:  Adaptec array scsi disk device мониторинг дисков windows

Из предыдущего преимущества платформы Android вытекает ее такой недостаток, как незащищенность от вирусов и вредоносных программ. Очень часто Hi-Tech ресурсы в Интернете пестрят информацией о том, что на Google Play Market обнаружено очередное приложение, зараженное вирусом или преследующее цели опустошить мобильный счет пользователя фоновой отправкой СМС на различные платные номера. Да, так иногда бывает, и сотрудникам Google Play Market есть еще над чем работать и что усовершенствовать. Так что пока пользователь может лишь надеяться на бдительность антивирусного приложения.

Торможения и нестабильность работы Android – еще один недостаток, также являющийся следствием открытости кода этой платформы.

Ситуация с Windows Phone в плане безопасности и стабильности работы — это полная противоположность ситуации с Android. Закрытость кода Windows Phone, возможно, и лишает эту платформу гибкости, однако она работает плавно, стабильно, без глюков.

Так что в вопросе безопасности и стабильности работы победа может быть только за Windows Phone. Это первая победа детища софтверного гиганта.

Android поддерживает многозадачность – это, безусловно, огромнейшее преимущество этой платформы. В этом вопросе Android смог превзойти даже iOS – мобильную платформу iPhone и iPad, поскольку многозадачность в iOS была реализована только к четвертой версии платформы, а в Android многозадачность существовала с самого начала – с первой версии.

Так, на Android пользователь может запускать одновременно несколько приложений и переключаться между ними через специальное меню «Недавние приложения», которое отображает 6 последних приложений. Если в приложении или игре не предусмотрено опции выхода, естественно, все запущенные приложения и игры будут висеть в фоновом режиме. Естественно, это будет быстро истощать аккумулятор смартфона. Но здесь вряд ли можно предъявить претензии именно к Android – за производительность всегда нужно платить. По-другому никак.

Windows Phone не поддерживает многозадачность.

Итак, очередная, уже третья победа Android.

5. Приложения для мобильной платформы

Если смотреть с позиции новичка – полного чайника, купившего первый в своей жизни смартфон, то в более выигрышной ситуации окажется платформа Windows Phone, поскольку здесь изначально предустановлено больше приложений. К примеру, вместе с новым смартфоном пользователь получает встроенные в платформу приложения-клиенты социальных сетей Facebook, Твиттер и Linkedin. Но такой мелкой наживкой не искусить бывалых пользователей, заядлых любителей мобильных коммуникаций. Потому что для платформы Android все необходимое – клиенты социальных сетей и различных интернет-сервисов, органайзеры, виджеты погоды и курсов валют, мультимедиа-приложения, образовательные программы, игры и многое другое — можно с легкостью бесплатно скачать с Google Play Market.

Чтобы определить, лучше Android или Windows Phone в плане разнообразия разработанного под них контента, сравним число приложений и игр, которые доступны для обеих платформ в фирменных магазинах приложений. Так, Windows Phone Store насчитывает свыше 120 тыс. различных приложений и игр. А на Google Play Market содержится более 700 тыс. приложений и игр для Android. Как видим, результат на лицо – 120 тыс. против 700 тыс. Но это только констатация конкретных цифр. На самом деле часть приложений и игр для Android, представленных сегодня на Google Play Market, низкого качества. Пользователь, устанавливая то или иное приложение или игру для Android, никак не может быть уверен в том, что оно запустится или будет корректно работать. Для Android несовместимость приложения или игры с версией платформы или с аппаратными составляющими мобильного устройства – вполне привычное дело.

Несмотря на это, победу снова присудим Android, ведь компания Google никогда не позиционировала свое детище как элитную бренд-фишку. Для этой платформы предусмотрено действительно огромнейшее число разнообразнейшего контента. Нужно попросту на некоторые мелочи закрывать глаза и, повторимся, иметь хорошее антивирусное приложение.

6. Картографический сервис

Карты Google Maps в 3D для Android – это действительно шедевр от поискового гиганта. Функция просмотра улиц Google Street View, реализованная в программах Google Maps и Google Earth позволяет просматривать панорамные виды улиц и городов всего мира. Google Maps – уже довольно зрелый проект, в который поисковой гигант вложил немало усилий. Конкурирующим картографическим проектам сегодня чтобы стать лучше, чем Google Maps, придется всерьез потрудиться. Возвращаясь к сравнительному обзору двух мобильных платформ, отметим, что с Google Maps в 3D для Android намного удобней работать, нежели с Nokia Maps, предустановленными в смартфонах на базе Windows Phone 8.

Картографический сервис – это очередная победа Android.

7. Хранение электронных денег

Обе мобильные платформы поддерживают систему NFS, которая используется, в частности, для проведения бесконтактных платежей – когда оплачивать товары или услуги в торговой точке можно, поднеся к терминалу мобильный телефон с активным банковским счетом в электронном варианте.

Для хранения денежных средств компания Google разработала электронную платежную систему Google Wallet. Посредством системы NFS, установленной на смартфоне, и специального Android-приложения от системы Google Wallet пользователи могут расплачиваться за товары и услуги в торговых точках, где предусмотрены бесконтактные платежи. Однако особой популярностью этот проект от компании Google не обзавелся.

Электронный кошелек для Windows Phone – также не особо популярная фишка, однако это не умаляет его удобства. Он может объединить все банковские карты пользователя. Потому в вопросе хранения электронных денег победа присуждается Windows Phone.

Многие фишки, которыми могут похвастаться и Android, и Windows Phone чрезвычайно схожи. Это и голосовое управление Google now для Android против Tell me для Windows Phone, и, соответственно, музыкальные сервисы Google Music против Xbox Music, и сервисы обмена сообщениями и видеосвязи Google Talk против Skype.

Подытоживая победы мобильных платформ по рассмотренным вопросам, отметим твердую и устойчивую победу Android – 5 против 2.

Так, платформа Windows Phone победила лишь дважды – в вопросах безопасности, стабильности работы и удобного кошелька для хранения электронных денег. Интерфейс, возможность настройки платформы под предпочтения пользователя, многозадачность, более 700 тыс. разработанных приложений и игр, лучший картографический сервис – как видим, это довольно немалый перевес Android.

Android – это мобильная платформа, в которой хаотично смешиваются и удачные, и неудачные решения. Это платформа для энтузиастов, для истинных ценителей свободы действий и исследователей различных возможностей мобильных технологий.

Windows Phone – это своеобразный аналог iOS. У этой платформы также именитый создатель, в основу ее принципов заложены имидж, стабильность, грациозность и плавность в работе, опека пользователя и максимальное обеспечение его безопасности. Пусть даже и в ущерб его всестороннему развитию.

Оцените статью