Managing Windows Phone 7 Trial Applications
- Posted: Aug 30, 2010 at 11:29 AM
- 4,952 Views
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
Windows Phone 7 provides the LicenseInformation class that includes the IsTrial() method. IsTrial() allows you to check, at runtime, if the running application has been installed from the Marketplace as a trial application, or if the user has purchased the application. Developers are able to use IsTrial() to change the behavior of their application based on whether or not the user is running a trial version or a paid for version. Unfortunately for WP7 devs, there is no easy way to control the IsTrial() results when developing and debugging their applications. IsTrial() will always return False when developing an application. Even more disappointing, LicenseInformation is a sealed class and there is no ILicenseInfo interface that you could use to mock out your own implementation while developing.
In addition, each developer is left to his or her own devices to come up with a system for controlling how their trial software behaves. Simple things like turning off features in the trial version is pretty straightforward, but if you want to have more complex behavior, things get trickier. What if you want someone to be able to use your application for 30 days before you disable features? How about 10 uses of the application before they need to buy the full version? You are on your own.
TrialManager is a simple piece of code that you can add to any WP7 project to help manage the behavior of your trial apps. TrialManager will also make it easier to simulate you application running in Trial mode when creating your apps. You can get the source to TrialManager here. Feel free to use it, modify, etc. The only licensing restriction is that I ask you send me an email, letting me know you are using the code in some form or fashion.
Get more details at http://slickthought.net/post/2010/08/30/Managing-Trial-Applications-for-Windows-Phone-7.aspx
Source code download
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.