Thursday, 6 September 2012

Hackalone
As the name says, add your images to Google Earth, in just a few simple steps.
Yes, its so easy.

Requirement:
1.You must have the original image of the location or object.
First of all, visit this url www.panoramio.com
Then, signup there, a google account will work, because panoramio is a part of google.
Now, login and upload your images there, you can upload upto 10 images at a time, and then give title and description to each image.
After that, your images will not be published in Google Earth, you have to do an important work now.
These below steps are important to publish your images in google earth.
  • Open each image one by one.
  • You will find an option, “Map this image” on your right screen.
  • Click on it.
  • Search the place by typing keywords, like India gate, new delhi, etc.
  • It will show a map with india gate.
  • Place the marker where you wanna show your image in google earth.
  • And click on save.
  • All done from your part.
  • Now, google earth team will review these images and will approve/disapprove it.
  • Reviewing may take some time, normal time is 2 or 3 days.
  • And, if they approve it, your images will be published at Google Earth.Important Notes:
  • Your images will be published to Google Earth only if the Google Earth team approve it.
  • After approval your images may take few days to show in Google Earth, because panoramio takes some time to transfer images to Google Earth, the normal time of transfer after approval is 10 to 20 days.Things to remember:
  • Give suitable and perfect titles in english language.
  • Add a good description of each images.
  • MUST map it or your images will not be reviewed and selected.
Some Important status by panoramio and its meaning:
This photo is selected for Google Earth.
This status means your image has been selected for Google Earth, and will be published as soon as possible.
This photo has not yet been reviewed.
This status means your image is still waiting for approval by Google Earth Team.
This photo has not been selected for Google Earth.
This status means, your image has been disapproved, and wont be published at Google Earth.
Now, you know everything about adding images to google earth.

How to Create Trial Applications for Windows Phone


Introduction

Windows Phone platform supports applications that run in trial mode. This ability can be used by Windows Phone developers to get users hooked on the application, which provides an opportunity to convert these users to paying customers.
Building applications that support trial mode is very easy with Windows Phone. Moreover there is no need to build two flavors of your application – one for trial mode and one without. You can do with one version that supports both the modes.

Licensing Basics

Whether the application is a trial version or a full version is stored in a license. This license is installed during the process of application installation. Trial licenses do not expire, however, when the user purchases the full version, the license information is updated and the trial license is updated with a full license.
To make the purchase experience easy, Windows Phone framework provides the ability to invoke the marketplace client.
Windows Phone developers can use the LicenseInformation class in the Microsoft.Phone.Marketplace  namespace to check whether the application has a trial license or not.

Hands On

Let us create a Windows Phone demo that supports trial mode. In our mock application, we will offer the ability to play sound for all users and the ability to play FX effects to only the paid version of the trial. Morever, we will also provide the ability for the user to buy the application from the trial version(s) he has downloaded.
Create a new Visual Studio application called WPTrialSample.
Create a new Visual Studio application
Create a new Visual Studio application
When prompted for the target Windows Phone OS version, select WP 7.1 and click OK.
Select the Windows Phone Platform
Select the Windows Phone Platform
Next, add 2 check boxes called "Sound" and "FX effects" and two buttons called "Start" and Purchase."
Include the Microsoft.Phone.Marketplace namespace in our MainPage class.
  1. using Microsoft.Phone.Marketplace;
Next,  create a local variable of class LicenseInformation, which will be used to see if the application is a trial version or not.
  1. public partial class MainPage : PhoneApplicationPage
  2.     {
  3.         static LicenseInformation license = new LicenseInformation();
  4.         // Constructor
  5.         public MainPage()
Next, implement a helper function, which checks whether the license is a trial version or not.
  1. public bool IsFullLicense()
  2.         {
  3.             return !license.IsTrial();
  4.         }
Next, in the constructor, we check for the license information, and if the application is a trial version, we do not enable the "FX Effects" option. This will ensure that in the trial mode, only "sound" option is available. Additionaly, we will enable the Purchase button only if the application is trial mode.
  1. public MainPage()
  2.         {
  3.             InitializeComponent();
  4.             checkBoxFXEffects.IsEnabled = IsFullLicense();
  5.             buttonPurchase.IsEnabled = !IsFullLicense();
  6.         }
Next, we need to implement what action occurs when users click the Purchase button.
We will need to create an instance of the marketplace task and link it here and ask for it to be shown when the application click event is triggered.
If you are having trouble following along, you can download a copy of this exercise below.
If you are running under the emulator, the licensing information will default to full version, So do test your features on a device.

Summary

In this article, we showed how easy it was to use the LicenseInformation class to derive the licensing information. I hope you have found this article useful.
Downloads