locked
Code re-usability across Windows Store App and Windows Phone 8 Apps

    Question

  • Hi,

    We have a app requirement for Windows Store App and Windows Phone 8. Is there any way in which we can select JavaScript/HTML5 as a development track and achieve maximum code re-usability between Windows Store App and Windows Phone 8 platforms?

    Thanks in advance.

    Suhas


    Monday, November 18, 2013 11:02 AM

Answers

  • what i know from phonegap it will wrap the website into an package. so yes could work. In the Windows Phone templates there is an html app which includes the browser control to load the html. but you wont have access to the winrt library from that.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Monday, November 18, 2013 1:55 PM
  • See Resources for Windows Phone developers for guidance on sharing C# code between Windows Store and Windows Phone apps.

    Some of this may apply for HTML as well, but the details will vary.

    For maximum reuse you'd need to use a multi-platform toolkit which hides the platform differences at the expense of being able to make use of the platform specific features and controls.

    --Rob

    Monday, November 18, 2013 3:38 PM
    Owner

All replies

  • you better go for Xaml / C#. Windows Phone doesnt support html apps like Windows 8 is doing.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Monday, November 18, 2013 11:32 AM
  • Thanks for the reply.

    How about using some cross platform tools like PhoneGap. Will that help?

    Monday, November 18, 2013 11:33 AM
  • what i know from phonegap it will wrap the website into an package. so yes could work. In the Windows Phone templates there is an html app which includes the browser control to load the html. but you wont have access to the winrt library from that.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Monday, November 18, 2013 1:55 PM
  • See Resources for Windows Phone developers for guidance on sharing C# code between Windows Store and Windows Phone apps.

    Some of this may apply for HTML as well, but the details will vary.

    For maximum reuse you'd need to use a multi-platform toolkit which hides the platform differences at the expense of being able to make use of the platform specific features and controls.

    --Rob

    Monday, November 18, 2013 3:38 PM
    Owner