Welcome!

.NET Authors: Ivan Antsipau, JP Morgenthal, Sandi Mappic, Yeshim Deniz, Carmen Gonzalez

Related Topics: Silverlight, .NET

Silverlight: Blog Feed Post

Windows Phone 7 Series – Initial Developer Impressions

You can choose to either develop for the platform in Silverlight or you can use the XNA toolkit

Windows Phone 7 Series (hereafter I'll just call it WP7) debuted a while ago at a press event but it's true coming out party was this past week at MIX 2010. This conference is a designer-developer hybrid conference and, of all the Microsoft development conferences I've ever attended, this has consistently been the most informative and exciting of the bunch.

In case you've been hiding under a rock this past week, Microsoft has been showing off WP7 and the development experience for it. I'm going to oversimplify here, but this is the basic idea: You can choose to either develop for the platform in Silverlight or you can use the XNA toolkit normally used for building XBox and PC games in C#. WP7 has all the trimmings including push notifications, rich GUI (hardware accelerated), rich audio, the full power of Silverlight's media control, and it even has Xbox live integration allowing you to unlock achievements by playing games on the phone. Development tool is standard Visual Studio and for the Silverlight model you can use Expression Blend 4 to build you GUI (and there are some fantastic new improvements in Blend 4).

I'm going to talk mostly about the Silverlight experience here since the last time I used XNA it was in beta and XNA has come a long way since then and I couldn't possibly do it justice. Your application is made of up pages (this concept should be familiar to SL3 developers), with each page acting like a specialized SL user control. These pages can have an application bar, which is similar to an iPhone tab bar control. The difference is that when you tap the elipsis ("...") on the WP7 app bar, the app bar expands without you losing context while the iPhone tab bar "more" button transitions you to a fairly bland table view controller. At this point you can do pretty much anything you would normally be able to do in Silverlight, but you also get things like raw access to audio from the microphone, pickers for all native types of data on the phone like contacts, etc and the ability to send e-mails and SMS - all the stuff you'd expect to have.

So, how does it feel to code for this thing and, more importantly, how does it compare to writing iPhone apps? First, let me preface this by saying that I've been writing iPhone apps off and on since before the SDK came out and we had to "fake it" with clever CSS and HTML and for the past few months I've been seriously writing heavy duty iPhone apps for real businesses. On many occasions over the past few months, I've said that developing for the iPhone was 'fun' and 'what coding should be like'. That said, I have also forcibly rammed my head into my desk out of frustration with certain aspects of the iPhone development process.

Writing apps that look and feel like iPhone apps that look just like every other iPhone application is a task that takes little to no effort. I can go from empty project to a data-driven table view controller on the iPhone in pretty much no time at all. I can also do the same thing on the WP7 tools in about the same amount of time. Where the two begin to diverge is when I want to start customizing. I won't go into painful detail here because I plan on making a bunch of blog posts about WP7 and comparing it to the iPhone later. There are a few points that I want to make, however:

Push Notifications

As I said, I plan on delving into individual topics as I blog more about this, but I wanted to bring this up specifically. Dealing with the App Store and with the Developer Portal in general on the iPhone is a headache at best. When you add into it the juggling, management, and eventual botching of certificates and provisioning profiles, the mess gets even worse. Now you add into it the debacle of getting certificates based on provisioning profiles that are used by your servers to send push notifications to registered iPhone devices and it can bring the strongest of men to weeping on his knees. From firsthand experience, the act of getting your first push notification to work on an iPhone/iPod touch application is akin to climbing mount everest and when you get to the top you're thinking, "#@*! I have to do this again!?" With Apple, the phone contacts Apple to get a notification token (assuming the application is using a provisioning profile configured for notifications), the token then has to be sent by the app's code to the app owner's server for storage. That server needs to be configured with the right certificates to that it can send a proprietary binary package of goo containing the notification to Apple's servers, which will eventually make its way down to your app. Trust me, getting this to work is a victorious moment, preceded by weeks of eye-gouging pain.

Here's how it works with WP7: App gets a unique notification URI that represents notifications for that app on that device. App sends the URI to the app owner's server. When you want to send a notification, HTTP POST the contents of that notification (XML payload) to Microsoft's notification server. That's it. Done.

Small side note here: I like that you can send unobtrusive toasts with WP7 far better than sending modal dialog boxes with iPhone, they feel more like the Palm Pre notifications than iPhone dialogs. There are no certificates and private keys to manage, there are no provisioning profiles to deal with, there are no certificates required to be present on the notification sending server and there is no management portal you have to go to in order to maintain this stuff. For the first time recent history, Microsoft took the "it just works" approach whereas Apple's is hideously and unnecessarily complex.

GUI Customization

I alluded to this earlier in the post. If what I want to do is display two rows of textual information in a table view cell, then the iPhone gives me that out of the box and my application will feel perfectly at home on the device. However, when I want to mix in some icons and some other gauges and indicators that might not fall into the existing line-up of controls, I quickly drop from feeling safe and secure to feeling like I'm back in the low-level Windows programming days of yore where everything I do needs to be a custom view with a custom render/paint method. It gets tedious, difficult, and time-consuming FAST.

Because WP7 lets me do all this stuff in Silverlight, I can use the advanced, composited, declarative UI to do truly remarkable things in very little time at all. I could make the cells in my table view (list view or grid in SL) have three rows and put whatever controls I want in there. Creating a type of UI that doesn't exist in the stock toolbox in Silverlight is easy... doing the same in the iPhone feels positively primitive by comparison.

Overall Experience

As you'll see in the blog posts I'm planning on doing, WP7 development is like a  breath of fresh air. It's funny, because I remember saying that when I first got my hands on the iPhone SDK and I was comparing iPhone development to Compact Framework for Windows Mobile. Cast aside all your preconceived notions about all previous versions of Microsoft mobile OS development - this is something entirely new. Also, keep in mind that when you build your mobile app in Silverlight, if you do it with a little forethought, you could potentially share 90+% of your code for an app that works on WP7, on a PC, and on a Mac.

I will still build apps for the iPhone, but only because people continue to want to pay me to do so. From now on, my mobile development for pleasure is going to be entirely WP7 based.

 

Read the original blog entry...

More Stories By Kevin Hoffman

Kevin Hoffman, editor-in-chief of SYS-CON's iPhone Developer's Journal, has been programming since he was 10 and has written everything from DOS shareware to n-tier, enterprise web applications in VB, C++, Delphi, and C. Hoffman is coauthor of Professional .NET Framework (Wrox Press) and co-author with Robert Foster of Microsoft SharePoint 2007 Development Unleashed. He authors The .NET Addict's Blog at .NET Developer's Journal.

@ThingsExpo Stories
The Internet of Things will greatly expand the opportunities for data collection and new business models driven off of that data. In her session at Internet of @ThingsExpo, Esmeralda Swartz, CMO of MetraTech, will discuss how for this to be effective you not only need to have infrastructure and operational models capable of utilizing this new phenomenon, but increasingly service providers will need to convince a skeptical public to participate. Get ready to show them the money! Speaker Bio: Esmeralda Swartz, CMO of MetraTech, has spent 16 years as a marketing, product management, and busin...
Samsung VP Jacopo Lenzi, who headed the company's recent SmartThings acquisition under the auspices of Samsung's Open Innovaction Center (OIC), answered a few questions we had about the deal. This interview was in conjunction with our interview with SmartThings CEO Alex Hawkinson. IoT Journal: SmartThings was developed in an open, standards-agnostic platform, and will now be part of Samsung's Open Innovation Center. Can you elaborate on your commitment to keep the platform open? Jacopo Lenzi: Samsung recognizes that true, accelerated innovation cannot be driven from one source, but requires a...
SYS-CON Events announced today that Red Hat, the world's leading provider of open source solutions, will exhibit at Internet of @ThingsExpo, which will take place on November 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. Red Hat is the world's leading provider of open source software solutions, using a community-powered approach to reliable and high-performing cloud, Linux, middleware, storage and virtualization technologies. Red Hat also offers award-winning support, training, and consulting services. As the connective hub in a global network of enterprises, partners, a...
P2P RTC will impact the landscape of communications, shifting from traditional telephony style communications models to OTT (Over-The-Top) cloud assisted & PaaS (Platform as a Service) communication services. The P2P shift will impact many areas of our lives, from mobile communication, human interactive web services, RTC and telephony infrastructure, user federation, security and privacy implications, business costs, and scalability. In his session at Internet of @ThingsExpo, Robin Raymond, Chief Architect at Hookflash Inc., will walk through the shifting landscape of traditional telephone a...
SYS-CON Events announced today that Matrix.org has been named “Silver Sponsor” of Internet of @ThingsExpo, which will take place on November 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. Matrix is an ambitious new open standard for open, distributed, real-time communication over IP. It defines a new approach for interoperable Instant Messaging and VoIP based on pragmatic HTTP APIs and WebRTC, and provides open source reference implementations to showcase and bootstrap the new standard. Our focus is on simplicity, security, and supporting the fullest feature set.
BSQUARE is a global leader of embedded software solutions. We enable smart connected systems at the device level and beyond that millions use every day and provide actionable data solutions for the growing Internet of Things (IoT) market. We empower our world-class customers with our products, services and solutions to achieve innovation and success. For more information, visit www.bsquare.com.
How do APIs and IoT relate? The answer is not as simple as merely adding an API on top of a dumb device, but rather about understanding the architectural patterns for implementing an IoT fabric. There are typically two or three trends: Exposing the device to a management framework Exposing that management framework to a business centric logic • Exposing that business layer and data to end users. This last trend is the IoT stack, which involves a new shift in the separation of what stuff happens, where data lives and where the interface lies. For instance, it’s a mix of architectural style...
SYS-CON Events announced today that SOA Software, an API management leader, will exhibit at SYS-CON's 15th International Cloud Expo®, which will take place on November 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. SOA Software is a leading provider of API Management and SOA Governance products that equip business to deliver APIs and SOA together to drive their company to meet its business strategy quickly and effectively. SOA Software’s technology helps businesses to accelerate their digital channels with APIs, drive partner adoption, monetize their assets, and achieve a...
From a software development perspective IoT is about programming "things," about connecting them with each other or integrating them with existing applications. In his session at @ThingsExpo, Yakov Fain, co-founder of Farata Systems and SuranceBay, will show you how small IoT-enabled devices from multiple manufacturers can be integrated into the workflow of an enterprise application. This is a practical demo of building a framework and components in HTML/Java/Mobile technologies to serve as a platform that can integrate new devices as they become available on the market.
SYS-CON Events announced today that Utimaco will exhibit at SYS-CON's 15th International Cloud Expo®, which will take place on November 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. Utimaco is a leading manufacturer of hardware based security solutions that provide the root of trust to keep cryptographic keys safe, secure critical digital infrastructures and protect high value data assets. Only Utimaco delivers a general-purpose hardware security module (HSM) as a customizable platform to easily integrate into existing software solutions, embed business logic and build s...
Connected devices are changing the way we go about our everyday life, from wearables to driverless cars, to smart grids and entire industries revolutionizing business opportunities through smart objects, capable of two-way communication. But what happens when objects are given an IP-address, and we rely on that connection, sometimes with our lives? How do we secure those vast data infrastructures and safe-keep the privacy of sensitive information? This session will outline how each and every connected device can uphold a core root of trust via a unique cryptographic signature – a “bir...
Internet of @ThingsExpo Silicon Valley announced on Thursday its first 12 all-star speakers and sessions for its upcoming event, which will take place November 4-6, 2014, at the Santa Clara Convention Center in California. @ThingsExpo, the first and largest IoT event in the world, debuted at the Javits Center in New York City in June 10-12, 2014 with over 6,000 delegates attending the conference. Among the first 12 announced world class speakers, IBM will present two highly popular IoT sessions, which will take place November 4-6, 2014 at the Santa Clara Convention Center in Santa Clara, Calif...
Almost everyone sees the potential of Internet of Things but how can businesses truly unlock that potential. The key will be in the ability to discover business insight in the midst of an ocean of Big Data generated from billions of embedded devices via Systems of Discover. Businesses will also need to ensure that they can sustain that insight by leveraging the cloud for global reach, scale and elasticity.
WebRTC defines no default signaling protocol, causing fragmentation between WebRTC silos. SIP and XMPP provide possibilities, but come with considerable complexity and are not designed for use in a web environment. In his session at Internet of @ThingsExpo, Matthew Hodgson, technical co-founder of the Matrix.org, will discuss how Matrix is a new non-profit Open Source Project that defines both a new HTTP-based standard for VoIP & IM signaling and provides reference implementations.

SUNNYVALE, Calif., Oct. 20, 2014 /PRNewswire/ -- Spansion Inc. (NYSE: CODE), a global leader in embedded systems, today added 96 new products to the Spansion® FM4 Family of flexible microcontrollers (MCUs). Based on the ARM® Cortex®-M4F core, the new MCUs boast a 200 MHz operating frequency and support a diverse set of on-chip peripherals for enhanced human machine interfaces (HMIs) and machine-to-machine (M2M) communications. The rich set of periphera...

SYS-CON Events announced today that Aria Systems, the recurring revenue expert, has been named "Bronze Sponsor" of SYS-CON's 15th International Cloud Expo®, which will take place on November 4-6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. Aria Systems helps leading businesses connect their customers with the products and services they love. Industry leaders like Pitney Bowes, Experian, AAA NCNU, VMware, HootSuite and many others choose Aria to power their recurring revenue business and deliver exceptional experiences to their customers.
The Internet of Things (IoT) is going to require a new way of thinking and of developing software for speed, security and innovation. This requires IT leaders to balance business as usual while anticipating for the next market and technology trends. Cloud provides the right IT asset portfolio to help today’s IT leaders manage the old and prepare for the new. Today the cloud conversation is evolving from private and public to hybrid. This session will provide use cases and insights to reinforce the value of the network in helping organizations to maximize their company’s cloud experience.
The Internet of Things (IoT) is making everything it touches smarter – smart devices, smart cars and smart cities. And lucky us, we’re just beginning to reap the benefits as we work toward a networked society. However, this technology-driven innovation is impacting more than just individuals. The IoT has an environmental impact as well, which brings us to the theme of this month’s #IoTuesday Twitter chat. The ability to remove inefficiencies through connected objects is driving change throughout every sector, including waste management. BigBelly Solar, located just outside of Boston, is trans...
SYS-CON Events announced today that Matrix.org has been named “Silver Sponsor” of Internet of @ThingsExpo, which will take place on November 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. Matrix is an ambitious new open standard for open, distributed, real-time communication over IP. It defines a new approach for interoperable Instant Messaging and VoIP based on pragmatic HTTP APIs and WebRTC, and provides open source reference implementations to showcase and bootstrap the new standard. Our focus is on simplicity, security, and supporting the fullest feature set.
Predicted by Gartner to add $1.9 trillion to the global economy by 2020, the Internet of Everything (IoE) is based on the idea that devices, systems and services will connect in simple, transparent ways, enabling seamless interactions among devices across brands and sectors. As this vision unfolds, it is clear that no single company can accomplish the level of interoperability required to support the horizontal aspects of the IoE. The AllSeen Alliance, announced in December 2013, was formed with the goal to advance IoE adoption and innovation in the connected home, healthcare, education, aut...