What's new with AeroGear in Windows 10

What's new with AeroGear in Windows 10

Windows 10 1st preview has been released for a long time, and the final version will be released soon (July 29). AeroGear developers can pay attention to some of the latest improvements, among which the biggest improvement is that there is no longer a need for 2 different binary packages, and the same code can run on Windows desktop, tablets and phones (even Xbox). This means that if you want to migrate your application, or you have `#if` states, you need to modify them and run the following code to check:

  1. using Windows.Foundation.Metadata;
  2.  
  3. // you used to have  
  4. # if WINDOWS_PHONE_APP
  5. // something for hardware buttons  
  6. #endif
  7.  
  8. // now you can use Metadata to make it a runtime check  
  9. if (ApiInformation.IsTypePresent( "Windows.Phone.UI.Input.HardwareButtons" ))
  10. {
  11. HardwareButtons.BackButtonPressed += BackButtonHandler;
  12. }

runtime-check.cs hosted with ❤ by GitHub

To use Mobile specific API you need to add Mobile Extension SDK:
This isn't to say your app can't run on desktop, so you need to run the tests above, or you can choose to continue running it only on mobile.
Visual Studio 2015 cannot handle these automatically yet. Here is a powerful shell script that can automate many things.
Also new on the Windows 10 front is that 'metro' apps no longer launch in full screen by default.
More new features of Windows 10 can be found here.

<<:  W3C releases Mobile Checker

>>:  New mobile page inspection tool: Mobile Checker

Recommend

I didn’t know that “air conditioning water” had so many wonderful uses…

1. Irrigation of household plants The condensed w...

How shared bikes make profit from "impossible" to "possible"

In two articles I wrote recently, I talked about ...

In Zhaosu, Xinjiang, be a "rainbow chaser"

The rainbow has been a symbol of beauty since anc...

App promotion: Is winter coming? How to promote products at low cost!

First of all, what I want to tell you is that in ...

How to accurately attract traffic on Douyin?

In the era of mobile Internet, Douyin has achieve...

How to plan a large event promotion from 0 to 1?

There are always frequent accidents when organizi...

With over 10 million daily active users, how does Qutoutiao operate?

As Pinduoduo went public and its stock price soar...

Lenovo and Hisense are pressing LeTV, and the smart TV war is heating up

The fierce competition in the smart TV market has...

Labor Day brand promotion strategy!

The May Day holiday is approaching, and major bra...

Which came first, the chicken or the egg? We have the answer! | Expo Daily

Which came first, the chicken or the egg? Nature:...