Category Archives: Windows Phone 7

Free Windows Phone

image

Are you looking for a Free Windows Phone?  Are you a developer?  Do you live on the West Coast of the US?  Then I have a phone for you. (Read Below)  If you have been looking for a free windows phone to do development on then all you need to do is contact me.  Email me at Daniel.Egan@microsoft.com and I will send you all the details.

I want to be clear on a couple of things.

  1. I am getting these phones to developers that are writing applications for the marketplace
  2. I have a limited supply (First ones to get me the info I need)
  3. You must live on the West Coast of the US

If you do not live on the West Coast of the US, I can try to find your windows phone champ for you.  Just post the request here :  http://thesociablegeek.com/forum/?mingleforumaction=viewforum&f=3.0 

This does not mean that they will have a phone for you, but if you are developing for Windows Phone, you WANT to know your windows phone champ.  If they don’t have phones, they may know someone who does ( I repeat, I am not saying they have phones Smile , but they may know a way.  Either way, they are a great resource for you. )

So all of you West Coasters, get your Free Windows Phone while they last.  Email me at Daniel.Egan@microsoft.com for the details.

Related Posts:



Windows Phone 7.5 Training Kit

Windows PhoneThe new Windows Phone 7.5 Training Kit have been released.  This time there is a Basic Version and an Advanced Version of the Windows Phone 7.5 Training Kit

You can download both of them here : http://bit.ly/w2xF6s

 

The Basic Labs Include

  • Hello Windows Phone
  • Building your first Windows Phone 7 Application
  • Windows Phone Navigation and Controls
  • Application Lifecycle
  • Using the Pivot and Panorama Controls
  • Accessing Windows Phone 7 Devices
  • Game Development with XNA Framework
  • Discovering Windows Phone 7 Device Capabilities
  • PhotoFun
  • Launchers
  • Choosers
  • Weather Service Push Notifications
  • Using Bing Maps

The Advanced Labs Include

  • Catapult Wars Lab
  • Multi-Touch Game Development with XNA
  • 3D Game Development with XNA Framework
  • Using a local database in the “Tidy” application
  • Background Transfer Service in the “Tidy” application
  • Fast Application Switching in the “Tidy” application
  • Creating Notifications in the “Tidy” application
  • Adding Multitasking to your application
  • XNA 3D Model Viewer
  • Search Integration
  • Background Audio Agents

You can download both of them here : http://bit.ly/w2xF6s

Related Posts:



The Web Role was started in a wrong port

imageOne of the great things about Windows Phone is all of the samples that are out there.  And topping them all is the Windows Azure Toolkit for Windows Phone 7 .  The toolkit gives you everything you need to develop a Windows Phone application using Windows Azure. I will do a full post walkthrough of using the toolkit, but I thought I would post about one thing that seems to be tripping people up when they are trying to get things up and running.

If you start the project and get the error Sorry, an error occurred while processing your request, the web role was started in a wrong port, You might scratch your head.  If you peek at the url you will notice that it is running on port 444 instead of 443

image

The reason it is doing this is because if it does not find port 443 open, it will increment by one until it finds an open port. If you look in your compute emulator you will also see the wrong port. Which is the reason it says The web role was started in a wrong port.  Because it was :)

image

So now, to fix this you want to see what is running on port 443.  To do this open a cmd window and type in the following netstat –aon

This will bring up a list of what is running on each port.

image

You want to look for anything that has a :443 at the end of it and look at the last column.  This is the process ID for the process that is using that port.

Next, open up Task Manager and look for the process ids that you found. ( You may need to go to View –> Select Columns first to add the PID column)

 

image

My offending applications were:

  • SQL Reporting Services (Which I shut down in Services)
  • TweetDeck
  • Skype

That fixed it for me… hope that helps

Daniel

Related Posts:



WP Workshop–Make Millions on Windows Phone

 

Join us for a new Windows Phone Workshop with Henry Lee

You will have to start 10 mins in where the actual presentation starts. 

IMPORTANT NOTE :  There were some troubles with volume that we fixed mid way through the session. Please turn your volume WAY UP at the beginning.

Related Posts:



Windows Phone Workshop–SQL Databases

 

If you missed the LIVE presentation of the Windows Phone Workshop, you can view the Video here.

Watch live streaming video from microsoftdevelopers at livestream.com

Related Posts:

  • No Related Posts


Windows Phone App of the Day : FourSquare

Foursquare has been around since the release of Windows Phone but they have made some cool new improvements lately.  They are utilizing the deep linking of the new secondary live tiles to pin specific places to your home screen.  If you would like to see how to do this in your own application, you can check out my post on the subject here http://thesociablegeek.com/2011/11/09/live-tiles-in-wp-mango/

Why is this cool?  Well, if you are a FourSquare addict, then you can save yourself some time by pinning the place you go to the most onto your homescreen.   1 Click will Deep link you into that specific check in.

 

Besides my post (above), if you want more info on working with live tiles, check out the following :

Jeff Blankenburg has also created a post on Live tiles for his 31Days of Mango Series : http://www.jeffblankenburg.com/2011/11/11/31-days-of-mango-day-11-live-tiles

Or the Jump Start Video on Channel 9

http://channel9.msdn.com/Series/Mango-Jump-Start/Mango-Jump-Start-10-Tiles–Notifications-on-Windows-Phone

This work is licensed under a Creative Commons license.

Related Posts:



The making of the Nokia Lumia 800

As a developer, and I mean as someone who gets his hands dirty in the code that is NEVER SEEN by whomever uses my software, I am always facinated by the design process that goes into making things “Look Good”.  In this short video, you can see how Nokia went about designing their new Nokia Lumia 800 phone which runs the Windows Phone OS codenamed Mango.   Let me know what you think.

 

This work is licensed under a Creative Commons license.

Related Posts:



Work on the Windows Phone Team

The jobs keep coming.  This is a great time to be a part of Windows Phone,  as you can see by my recent posts, there are a ton of great jobs out there for great people… Well here is one more.

 

Brandon Watson who runs Developer Experience for Windows Phone has a position on his team.   You can read his clever way of posting it here http://www.manyniches.com/windows-phone/windows-phone-is-hiring-on-my-team/  (Its all in Tweets)

 

Or you can look for the official position description here.

Either way, I can attest, it is a cool way to spend your day…. So send in your resume and join the team.

This work is licensed under a Creative Commons license.

Related Posts:



Video Chat for WP7–TANGO

They have been talking about it for a while and it has finally hit the market place.  Tango, the Video Chat application for WP7.  It will obviously work better with the new phones with front facing cameras… but it also works on my Samsung Focus… Check out the video below.

 

 

 

 

It of course works best over wifi, but will also work over 4G and 3G

 

image

 

Learn more at http://www.tango.me/ Like us on Facebook at http://www.facebook.com/TangoMe Follow us on Twitter at http://www.twitter.com/tangome Watch us on YouTube at http://www.youtube.com/TangoMe Need Help? Visit http://support.tango.me

This work is licensed under a Creative Commons license.

Related Posts:



Live Tiles in WP Mango

Ever since Windows Phone came out, I have always contended that Live tiles are the coolest feature and one that is :

1) Not on any other platform (Yes, I know that Android has widgets… not the same thing)

2) A great way to drive people into your application. (Which you want if it is add based.)

 

I will do another post later about why you should do Live Tiles from a Monetizing standpoint, but for this post, I just want to show you how easy it is to work with live tiles.

 

To begin with, live tiles have been around since 7.0 but to really take advantage of them you had to use Push Notifications.  While this is not THAT difficult, it did add quite a bit of complexity and the need to host your own service (or use scheduled tiles).  In the Mango release, we have made 4 great additions to live tiles.

 

1) You can change the live tiles from your code.

2) You can create secondary tiles to deep link into specific pages of your application

3) You can write on the back of tiles and have them flip

4) You can use background process to have them change when not even in your application

 

To create and modify live tile is fairly simple.

This firs thing we want to do is create a simple windows phone page that has three buttons on it:

  • Create App Tile
  • Create Second Tile
  • Delete Secondary Tile

Next we need to go to code behind and add a using statement for the phone shell.

 

using Microsoft.Phone.Shell;

Then inside the first button click we add the following code :

 

 private void button1_Click(object sender, RoutedEventArgs e)
        {

            //Tile is always the first Tile, even if not pinned .
            ShellTile TileToFind = ShellTile.ActiveTiles.First();

            if (TileToFind != null)
            { 

                StandardTileData NewTileData = new StandardTileData();

                NewTileData.Title = "My Cool Tile";
                NewTileData.BackgroundImage = new Uri(
                    "CoolTile.jpg", UriKind.Relative);
                NewTileData.Count = 5;

                NewTileData.BackTitle = "Tiles Got Back";
                NewTileData.BackBackgroundImage = new Uri(
                    "CoolTileBack.jpg", UriKind.Relative);

                TileToFind.Update(NewTileData);

            }

        }
  • The first thing we do is get a reference to the Live Tile that comes with your application. (TileToFind)
  • Once we have a reference to it we can create our new tile data using the StandardTileData class.
  • We set the properties including the image we want on the live tile (a 173 by 173 png or jpg… make sure that your image is set to “content” in your project or you will not see it)
  • Next we set the back of the tile
  • And finally call the update method to change the live tile.

 

That is all you need to do to change your live tile.

If you want to create a secondary tile, it is slightly different.

 

for the second button click event we do the following

private void button2_Click(object sender, RoutedEventArgs e)
        {
            ShellTile SecondTile = ShellTile.ActiveTiles.FirstOrDefault(
                x => x.NavigationUri.ToString().Contains("Page2.xaml"));

            StandardTileData NewTileData;
            NewTileData = new StandardTileData();

            NewTileData.Title = "Secondary Tile";
            NewTileData.BackgroundImage = new Uri(
                "CoolTile.jpg", UriKind.Relative);
            NewTileData.Count = 5;
            NewTileData.BackTitle = "Second Tiles Got Back";
            NewTileData.BackBackgroundImage = new Uri(
                "CoolTileBack.jpg", UriKind.Relative);

            if (SecondTile == null)
            {
                ShellTile.Create(new Uri(
                    "/Page2.xaml", UriKind.Relative), NewTileData);
            }
            else
            {
                SecondTile.Update(NewTileData);
            }
        }

 

There are a couple of noticeable change.  To find the secondary tile, we need to search for it since we are not guaranteed that it exists.  We do this by searching the ActiveTiles collection for the NavigationUri of the tile that we set lower in the event.  The only other change is creating the tile if it does not exist.  Otherwise we update it like before.

I have included all the code for the project HERE

If you want to run this code in the background so you can change the tile while users are not using the phone. You can check out my post on Background Agents

 

Enjoy

This work is licensed under a Creative Commons license.

Related Posts: