If you haven’t heard already, the Jan 2011 update of the windows phone 7 developer tools is out, er, in Feb. You can download the installation files from here,
The performance increase with the new emulator is clearly noticeable and the first time deploy is real quick! The emulator image should also be a precursor to the windows phone 7 OS update that we’ve been waiting for ever. The emulator image includes copy-paste functionality which is enabled by default on all textboxes, password boxes and edit controls within web browser control, so existing apps get this feature for free. Go ahead and give the new tools a try. If you want to experiment more you might be interested in a unlocked emulator image, follow the link for more information.
First up, the issue isn’t fixed yet. I still cannot login to AppHub using my windows mobile 6.x developer account and can’t view details of my Minesweeper app. Who knows how many copies its sold. I had numerous exchanges with Microsoft’s support team on the AppHub forums and via email as well (support ticket), but somehow we never managed to get to the root of it. In fact, the support team itself grew so tired of the problem that they suggested I create a new dev account.
I grew impatient, and it was really frustrating to have an app ready for submission but not being able to do anything with it. Eventually, the frustration had to show somewhere, and it was on this forum thread
Prabhu Kumar in reply to Nick
Nick, I feel for you and totally understand the frustration. Since day one I have been getting the XBOX profile linking error, We encountered an issue connecting your App Hub account with your Xbox Live Profile. Please visit Xbox.com and update your contact information. After you have updated your contact information, please return to the App Hub (https://users.create.msdn.com/Register) to continue. I have an app published on the Windows Mobile 6.x marketplace since Aug, now I can’t view the details of this app. I completed work on my WP7 application 1.5 months ago and the first version is ready for submission to marketplace, only if I can login. You can imagine how frustrating all this can be, the issue has taken far too long to be fixed, this has drained all my motivation.
I have exchanged numerous mails with Microsoft support team on this issue, and from the looks of it they really are trying their best, unfortunately, their best is not good enough for some of us. During the first week of December I was told that there would be an update happening to AppHub around mid of December. I was hoping that the issue would be fixed but it wasn’t. After the update the only change I notice is that the xbox.com link on the error page now takes me to the correct link. Previously, this link used to take me to the 404 page you mentioned above.
Out of desperation, I am now considering creating another developer account on AppHub with a new live id, even this I am not 100% sure will work.
I asked the support team when the next update to AppHub was planned and got this reply, “We do not have release date to announce for the next App Hub update at this time. In regards to the login issue you are experiencing at this point the only solution would be to create a new account with a different live ID but make sure to go to xbox.com before hand to get all the information in order on that side.”
I know it’s an extra $99, and not that I can’t afford it but it doesn’t feel right and I shouldn’t have to be doing it in the first place. I have lost all hope of this issue being resolved.
I went ahead and created a new dev account, the id verification was in progress when Shaun Taulbee of Microsoft, who has been really helpful in the forums, replied saying,
If you find it necessary to pay again to create a new account due to a Microsoft problem, send in a support request asking for a refund and we’ll review it (and likely approve it given the circumstances).
The thought of refund made me happy, but I had my doubts. So once my second account was verified by Geotrust I applied for a refund through the developer dashboard, by creating a support ticket. Couple of days later I got an email from Microsoft saying that the refund had been approved! yay! Few days and the refund showed up on my bill,
Well, thank you Microsoft, it means a lot. I am glad it’s over now. The new account works flawlessly. I would still like to get my first account working again and look at my app numbers for Win Mo 6.x, and probably transfer the credits to the new account somehow, but I’ll save it for another day. If you’ve had similar problems with the AppHub, and had to create a new account to submit your app, I suggest you contact the support team and get your dollars refunded!
About 3 months ago when I had tweeted (or twit?) that the HD7 could be my next phone I wasn’t a 100 percent sure, and when the HTC Mozart came out it was switch at first sight. I wanted to buy the Mozart mainly for three reasons; its unibody construction, smaller screen and the SLCD display. But now, holding a HD7 in my hand, I reminisce and think about how fate had its own plan. Too dramatic for a piece of gadget? Well, sort of, but seriously, this has been most exciting.
So in short, I bought myself a HTC HD7 and am really loving it so far. Here are some pictures (taken from my HD2 which now lies in a corner, crying),
Most of my day was spent setting up the device. Email accounts, Facebook, Marketplace etc. Since marketplace isn’t officially launched in India yet, my primary live id did not work. Whenever I tried launching marketplace it would say ‘marketplace is not currently supported in your country’. Searching the forums I found an easy work around. Just create a dummy live id with the country set to UK or US and log in to the device using this id. I was worried if the contacts and feeds from my primary live account would not be synced but that was not a problem. Adding another live account into the device does import your contacts, calendar and feeds from it. And that’s it, marketplace now works perfectly. I installed a few trial and free applications; haven’t checked if I can purchase apps though, will check that later and update this post.
There is one issue I am still facing with the device, I can’t access the internet over GPRS (see update below). Windows Phone 7 only gives you the option to add an ‘APN’ and nothing else. Checking the connection settings on my HD2, I found out that there is also a proxy server I need to add to access GPRS, but so far I haven’t found a way to do that on WP7. Ideally HTC should have taken care of this, detect the operator and apply that operators settings on the device, but looks like that’s not happening. I also tried the ‘Connection Settings’ application that HTC bundled with the device, but it did nothing magical. If you’re reading this and know how to fix this problem please leave a comment.
The next thing I did is install apps, a lot of apps. Read Engadget’s guide to essential apps for WP7. The apps and games I installed so far include Beezz (twitter app with push notifications), twitter (the official twitter app), Facebook, Youtube, NFS Undercover, Rocket Riot, Krashlander, Unite and the list goes on. All the apps run super smooth. The display looks fine indoors but I know it’s going to suck in bright sunlight. Anyhow, I am really impressed with what I’ve seen so far.
I leave you with a few more photos. Have a great year ahead. Ciao!
Update: Well, turns out that the Vodafone Live GPRS Plan is not supported by HD7. I had to switch to a different plan, Vodafone Mobile Connect (VMC), which is much much more expensive than the first (about 4 times as much). Anyways, I have it working now.
Like I mentioned in this post a while back, I came across a dictionary web service called Aonaware that serves up word definitions from various dictionaries and is really easy to use. The services page on their website, http://services.aonaware.com/DictService/DictService.asmx, lists all the operations that are supported by the dictionary service. Here they are,
Word Dictionary Web Service
The following operations are supported. For a formal definition, please review the Service Description.
Define Define given word, returning definitions from all dictionaries
DefineInDict Define given word, returning definitions from specified dictionary
DictionaryInfo Show information about the specified dictionary
StrategyList Return list of all available strategies on the server
Follow the links above to get more information on each API.
In this post we will be building a simple windows phone 7 client which uses this service to get word definitions for words entered by the user. The application will also allow the user to select a dictionary from all the available ones and look up the word definition in that dictionary. So of all the apis above we will be using only two, DictionaryList() to get a list of all supported dictionaries and DefineInDict() to get the word definition from a particular dictionary.
Before we get started, a note to you all; I would have liked to implement this application using concepts from data binding, item templates, data templates etc. I have a basic understanding of what they are but, being a beginner, I am not very comfortable with those topics yet so I didn’t use them. I thought I’ll get this version out of the way and maybe in the next version I could give those a try.
A somewhat scary mock-up of the what the final application will look like,
Select Dictionary is a list picker control from the silverlight toolkit (you need to download and install the toolkit if you haven’t already). Below it is a textbox where the user can enter words to look up and a button beside it to fetch the word definition when clicked. Finally we have a textblock which occupies the remaining area and displays the word definition from the selected dictionary.
Create a silverlight application for windows phone 7, AonawareDictionaryClient, and add references to the silverlight toolkit and the web service. From the solution explorer right on References and select Microsoft.Phone.Controls.Toolkit from under the .NET tab,
Next, add a reference to the web service. Again right click on References and this time select Add Service Reference In the resulting dialog paste the service url in the Address field and press go, (url –> http://services.aonaware.com/DictService/DictService.asmx)
once the service is discovered, provide a name for the NameSpace, in this case I’ve called it AonawareDictionaryService. Press OK. You can now use the classes and functions that are generated in the AonawareDictionaryClient.AonawareDictionaryService namespace.
Let’s get the UI done now. In MainPage.xaml add a namespace declaration to use the toolkit controls,
I have commented out the PageTitle as it occupies too much valuable space, and the ContentPanel is changed to contain three rows. First row contains the list picker control, second row contains the textbox and the button, and the third row contains a textblock within a scroll viewer.
The designer will now be showing the final ui,
Now go to MainPage.xaml.cs, and add the following namespace declarations,
using Microsoft.Phone.Controls;
using AonawareDictionaryClient.AonawareDictionaryService;
using System.IO.IsolatedStorage;
A class called DictServiceSoapClient would have been created for you in the background when you added a reference to the web service. This class functions as a wrapper to the services exported by the web service. All the web service functions that we saw at the start can be access through this class, or more precisely through an object of this class.
Create a data member of type DictServiceSoapClient in the Mainpage class, and a function which initializes it,
DictServiceSoapClient DictSvcClient = null;
private DictServiceSoapClient GetDictServiceSoapClient()
{
if (null == DictSvcClient)
{
DictSvcClient = new DictServiceSoapClient();
}
return DictSvcClient;
}
We have two major tasks remaining. First, when the application loads we need to populate the list picker with all the supported dictionaries and second, when the user enters a word and clicks on the arrow button we need to fetch the word’s meaning.
Populating the List Picker
In the OnNavigatingTo event of the MainPage, we call the DictionaryList() api. This can also be done in the OnLoading event handler of the MainPage; not sure if one has an advantage over the other. Here’s the code for OnNavigatedTo,
client.DictionaryListCompleted += new EventHandler<DictionaryListCompletedEventArgs>(OnGetDictionaryListCompleted);
client.DictionaryListAsync();
base.OnNavigatedTo(e);
}
Windows Phone 7 supports only async calls to web services. When we added a reference to the dictionary service, asynchronous versions of all the functions were generated automatically. So in the above function we register a handler to the DictionaryListCompleted event which will occur when the call to DictionaryList() gets a response from the server. Then we call the DictionaryListAsync() function which is the async version of the DictionaryList() api. The result of this api will be sent to the handler OnGetDictionaryListCompleted(),
if (e.Error == null)
{
listOfDictionaries = e.Result;
PopulateListPicker(listOfDictionaries, settings);
}
else if (settings.Contains(“SavedDictionaryList”))
{
listOfDictionaries = settings[“SavedDictionaryList”] as Dictionary[];
PopulateListPicker(listOfDictionaries, settings);
}
else
{
MessageBoxResult res = MessageBox.Show(“An error occured while retrieving dictionary list, do you want to try again?”, “Error”, MessageBoxButton.OKCancel);
if (MessageBoxResult.OK == res)
{
GetDictServiceSoapClient().DictionaryListAsync();
}
}
settings.Save();
}
I have used IsolatedStorageSettings to store a few things; the entire dictionary list and the dictionary that is selected when the user exits the application, so that the next time when the user starts the application the current dictionary is set to the last selected value. First we check if the api returned any error, if the error object is null e.Result will contain the list (actually array) of Dictionary type objects. If there was an error, we check the isolated storage settings to see if there is a dictionary list stored from a previous instance of the application and if so, we populate the list picker based on this saved list. Note that in this case there are chances that the dictionary list might be out of date if there have been changes on the server. Finally, if none of these cases are true, we display an error message to the user and try to fetch the list again.
PopulateListPicker() is passed the array of Dictionary objects and the settings object as well,
foreach (string dictName in listPickerDictionaryList.Items)
{
if (dictName == savedDictionaryName)
{
listPickerDictionaryList.SelectedItem = dictName;
break;
}
}
settings[“SavedDictionary”] = listPickerDictionaryList.SelectedItem as string;
}
We first clear all the items from the list picker, add the dictionary names from the array and then create a key in the settings called SavedDictionaryList and store the dictionary list in it. We then check if there is saved dictionary available from a previous instance, if there is, we set it as the selected item in the list picker. And if not, we set “WordNet ® 2.0” as the default dictionary. Before returning, we save the selected dictionary in the “SavedDictionary” key of the isolated storage settings. Fetching word definitions
Getting this part done is very similar to the above code. We get the input word from the textbox, call into DefineInDictAsync() to fetch the definition and when DefineInDictAsync completes, we get the result and display it in the textblock. Here is the handler for the button click,
if (txtboxInputWord.Text.Trim().Length <= 0)
{
MessageBox.Show(“Please enter a word in the textbox and press ‘Go'”);
}
else
{
Dictionary[] listOfDictionaries = settings[“SavedDictionaryList”] as Dictionary[];
string selectedDictionary = listPickerDictionaryList.SelectedItem.ToString();
string dictId = “wn”; //default dictionary is wordnet (wn is the dict id)
foreach (Dictionary dict in listOfDictionaries)
{
if (dict.Name == selectedDictionary)
{
dictId = dict.Id;
break;
}
}
client.DefineInDictCompleted += new EventHandler<DefineInDictCompletedEventArgs>(OnDefineInDictCompleted);
client.DefineInDictAsync(dictId, txtboxInputWord.Text.Trim());
}
}
We validate the input and then select the dictionary id based on the currently selected dictionary. We need the dictionary id because the api DefineInDict() expects the dictionary identifier and not the dictionary name. We could very well have stored the dictionary id in isolated storage settings too. Again, same as before, we register a event handler for the DefineInDictCompleted event and call the DefineInDictAsync() method passing in the dictionary id and the input word.
if (wd == null || e.Error != null || wd.Definitions.Length == 0)
{
txtBlockWordMeaning.Text = String.Format(“No definitions were found for ‘{0}’ in ‘{1}'”, txtboxInputWord.Text.Trim(), listPickerDictionaryList.SelectedItem.ToString().Trim());
}
else
{
foreach (Definition def in wd.Definitions)
{
string str = def.WordDefinition;
str = str.Replace(” “, ” “); //some formatting
txtBlockWordMeaning.Text = str;
}
}
}
When the api completes, e.Result will contain a WordDefnition object. This class is also generated in the background while adding the service reference. We check the word definitions within this class to see if any results were returned, if not, we display a message to the user in the textblock. If a definition was found the text on the textblock is set to display the definition of the word.
Adding final touches, we now need to save the current dictionary when the application exits. A small but useful thing is selecting the entire word in the input textbox when the user selects it. This makes sure that if the user has looked up a definition for a really long word, he doesn’t have to press ‘clear’ too many times to enter the next word,
OnNavigatingFrom() is called whenever you navigate away from the MainPage, since our application contains only one page that would mean that it is exiting (or getting tombstoned).
I leave you with a short video of the application in action, but before that if you have any suggestions on how to make the code better and improve it please do leave a comment.
Who would want to flick and drag UI controls!? There might not be many use cases but I think some concepts here are worthy of a post.
So we will create a simple silverlight application for windows phone 7, containing a canvas element on which we’ll place a button control and an image and then, as the title says, drag and flick the controls. Here’s Mainpage.xaml,
the second row in the main grid contains a canvas element, MainCanvas, with its horizontal and vertical alignment set to stretch so that it occupies the entire grid. The canvas background is a linear gradient brush starting with Black and ending with BlanchedAlmond. We’ll add the button and image control to this canvas at run time.
Moving to Mainpage.xaml.cs the Mainpage class contains the following members,
public partial class MainPage : PhoneApplicationPage
{
Button FlickButton;
Image FlickImage;
FrameworkElement ElemToMove = null;
double ElemVelX, ElemVelY;
const double SPEED_FACTOR = 60;
DispatcherTimer timer;
FlickButton and FlickImage are the controls that we’ll add to the canvas. ElemToMove, ElemVelX and ElemVelY will be used by the timer callback to move the ui control. SPEED_FACTOR is used to scale the velocities of ui controls.
Here’s the Mainpage constructor,
// Constructor
public MainPage()
{
InitializeComponent();
AddButtonToCanvas();
AddImageToCanvas();
timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromMilliseconds(35);
timer.Tick += new EventHandler(OnTimerTick);
}
We’ll look at those AddButton and AddImage functions in a moment. The constructor initializes a timer which fires every 35 milliseconds, this timer will be started after the flick gesture completes with some inertia.
Back to AddButton and AddImage functions,
void AddButtonToCanvas()
{
LinearGradientBrush brush;
GradientStop stop1, stop2;
Random rand = new Random(DateTime.Now.Millisecond);
FlickButton = new Button();
FlickButton.Content = “”;
FlickButton.Width = 100;
FlickButton.Height = 100;
brush = new LinearGradientBrush();
brush.StartPoint = new Point(0, 0);
brush.EndPoint = new Point(0, 1);
stop1 = new GradientStop();
stop1.Offset = 0;
stop1.Color = Colors.White;
stop2 = new GradientStop();
stop2.Offset = 1;
stop2.Color = (Application.Current.Resources[“PhoneAccentBrush”] as SolidColorBrush).Color;
brush.GradientStops.Add(stop1);
brush.GradientStops.Add(stop2);
FlickButton.Background = brush;
Canvas.SetTop(FlickButton, rand.Next(0, 400));
Canvas.SetLeft(FlickButton, rand.Next(0, 200));
MainCanvas.Children.Add(FlickButton);
//subscribe to events
FlickButton.ManipulationDelta += new EventHandler<ManipulationDeltaEventArgs>(OnManipulationDelta);
FlickButton.ManipulationCompleted += new EventHandler<ManipulationCompletedEventArgs>(OnManipulationCompleted);
}
this function is basically glorifying a simple task. After creating the button and setting its height and width, its background is set to a linear gradient brush. The direction of the gradient is from top towards bottom and notice that the second stop color is the PhoneAccentColor, which changes along with the theme of the device. The line,
stop2.Color = (Application.Current.Resources[“PhoneAccentBrush”] as SolidColorBrush).Color;
does the magic of extracting the PhoneAccentBrush from application’s resources, getting its color and assigning it to the gradient stop.
AddImage function is straight forward in comparison,
void AddImageToCanvas()
{
Random rand = new Random(DateTime.Now.Millisecond);
FlickImage = new Image();
FlickImage.Source = new BitmapImage(new Uri(“/images/Marble.png”, UriKind.Relative));
Canvas.SetTop(FlickImage, rand.Next(0, 400));
Canvas.SetLeft(FlickImage, rand.Next(0, 200));
MainCanvas.Children.Add(FlickImage);
//subscribe to events
FlickImage.ManipulationDelta += new EventHandler<ManipulationDeltaEventArgs>(OnManipulationDelta);
FlickImage.ManipulationCompleted += new EventHandler<ManipulationCompletedEventArgs>(OnManipulationCompleted);
}
The ManipulationDelta and ManipulationCompleted handlers are same for both the button and the image.
OnManipulationDelta() should look familiar, a similar implementation was used in the previous post,
FrameworkElement Elem = sender as FrameworkElement;
double Left = Canvas.GetLeft(Elem);
double Top = Canvas.GetTop(Elem);
Left += args.DeltaManipulation.Translation.X;
Top += args.DeltaManipulation.Translation.Y;
//check for bounds
if (Left < 0)
{
Left = 0;
}
else if (Left > (MainCanvas.ActualWidth – Elem.ActualWidth))
{
Left = MainCanvas.ActualWidth – Elem.ActualWidth;
}
if (Top < 0)
{
Top = 0;
}
else if (Top > (MainCanvas.ActualHeight – Elem.ActualHeight))
{
Top = MainCanvas.ActualHeight – Elem.ActualHeight;
}
Canvas.SetLeft(Elem, Left);
Canvas.SetTop(Elem, Top);
}
all it does is calculate the control’s position, check for bounds and then set the top and left of the control.
OnManipulationCompleted() is more interesting because here we need to check if the gesture completed with any inertia and if it did, start the timer and continue to move the ui control until it comes to a halt slowly,
ManipulationCompletedEventArgs contains a member, IsInertial, which is set to true if the manipulation was completed with some inertia. args.FinalVelocities.LinearVelocity.X and .Y will contain the velocities along the X and Y axis. We need to scale down these values so they can be used to increment the ui control’s position sensibly. A reference to the ui control is stored in ElemToMove and the velocities are stored as well, these will be used in the timer callback to access the ui control. And finally, we start the timer.
The timer callback function is as follows,
void OnTimerTick(object sender, EventArgs e)
{
if (null != ElemToMove)
{
double Left, Top;
Left = Canvas.GetLeft(ElemToMove);
Top = Canvas.GetTop(ElemToMove);
Left += ElemVelX;
Top += ElemVelY;
//check for bounds
if (Left < 0)
{
Left = 0;
ElemVelX *= -1;
}
else if (Left > (MainCanvas.ActualWidth – ElemToMove.ActualWidth))
{
Left = MainCanvas.ActualWidth – ElemToMove.ActualWidth;
ElemVelX *= -1;
}
if (Top < 0)
{
Top = 0;
ElemVelY *= -1;
}
else if (Top > (MainCanvas.ActualHeight – ElemToMove.ActualHeight))
{
Top = MainCanvas.ActualHeight – ElemToMove.ActualHeight;
ElemVelY *= -1;
}
Canvas.SetLeft(ElemToMove, Left);
Canvas.SetTop(ElemToMove, Top);
//reduce x,y velocities gradually
ElemVelX *= 0.9;
ElemVelY *= 0.9;
//when velocities become too low, break
if (Math.Abs(ElemVelX) < 1.0 && Math.Abs(ElemVelY) < 1.0)
{
timer.Stop();
ElemToMove = null;
}
}
}
if ElemToMove is not null, we get the top and left values of the control and increment the values with their X and Y velocities. Check for bounds, and if the control goes out of bounds we reverse its velocity. Towards the end, the velocities are reduced by 10% every time the timer callback is called, and if the velocities reach too low values the timer is stopped and ElemToMove is made null.
Here’s a short video of the program, the video is a little dodgy because my display driver refuses to run the animations smoothly. The flicks aren’t always recognised but the program should run well on an actual device (or a pc with better configuration),
Today I came across this web service called aonaware which serves up word definitions from various dictionary databases, so I wrote up a quick windows phone 7 app to check it out and it’s kinda neat.
Here’s a video of the app running on the emulator, I’ll write a post soon.
I was working on an application at work when I needed to figure out a really trivial case, well, trivial in theory at least. All I wanted to know was if a button was completely inside a rectangle. Could anything else be simpler you think. Just check the button bounds against the rectangle bounds,
the Right and Bottom of the Button and Rectangle can be calculated using the Width and the Height properties of each. You’d expect this to work correctly, but as far as Windows Phone 7 is concerned there is only one caveat.
I wrote up a simple application to illustrate this. Create a Windows Phone 7 Silverlight application and add the following to the ContentPanel grid in Mainpage.xaml,
We register for the ManipulationDelta event on the button and update the Text on the two Textblocks to show the Top properties of the rectangle and the button, if you run the program this is how the application will look,
The OnMyButtonManipulationDelta() function will be called whenever a ManipulationDelta event occurs on the MyButton control, which happens when the user clicks and drags the button around. Here we want to move the button along with the users drag,
In this function we get the delta manipulation values along the X and Y axis and add it to the Buttons Left and Top property, this makes sure that the button control moves along with the users finger when he/she clicks and drags the button.
Now when we move the button and place it inside the rectangle the values on the textblocks update,
Things are fine till here, but they start getting interesting when you move the button to the top of the rectangle,
the Button control appears to be well inside the Rectangle but the Top property of the button is 144 where as that of the Rectangle is 150. The values suggest that the button is outside the rectangle!
This happens because there is more to a button control than what meets the eyes. The button is not confined within the white rectangular boundary but is much bigger than that. When you drag and drop a button control using the visual editor in Visual Studio, the area of the button that is selected is bigger than the button itself, (see image below)
This is intentional and done to make sure that the target area for the user is a bit larger than the control itself so that the control can be selected easily without requiring too much precision. This, of course, is a nice feature (ask anyone who has tried using a Windows Mobile touch screen device with a finger ;)
Placing the Button control precisely on top of the rectangle like below,
reveals that there are 12 extra pixels on all sides of the button control. (rectangle top = 150, button top = 138)
So that is all in this post. In the next post we’ll see how easy it is to pick a button control and flick it, the button will bounce around the screen and come to a halt gradually. Refreshing old memories of marbles ;)
It’s been a while since my last post so I thought I’ll write a filler. Forgive me but I’m going to start off with some rant. My windows mobile marketplace account hasn’t been accessible for a couple of weeks now. Every time I try logging in I get this annoying error which says,
“WE’RE SORRY. AN ERROR HAS OCCURRED.
We encountered an issue connecting your App Hub account with your Xbox Live Profile.
Please visit Xbox.com and update your contact information.
After you have updated your contact information, please return to the App Hub (https://users.create.msdn.com/Register) to continue. View App Hub FAQ A09/S3D4”
The error code at the end keeps changing all the time, heck, I don’t even know if it’s an error code. As suggested, I updated my contact information on xbox.com, made sure that all the information at billing.microsoft.com was alright but still no luck. A little bit of searching on the help forums revealed that many other people were facing the same problem. And I thought Microsoft screwed up big time while migrating the mobile marketplace to the new and “improved” App Hub. What’s worse is that I can’t even see my existing app on the marketplace and I have no idea about the download figures, not that I am making thousands off it but still. And then yesterday I got the Windows Phone Newsletter for October, and it was reassuring in some ways. It said,
“On October 11, we told you about App Hub, the single destination for both Windows Phone and Xbox Live indie developers. Although App Hub is now open for all developers to explore, only a small number of developers are currently able to submit Windows Phone 7 apps or games.On November 3, Windows Phone 7 app submission will be open to all registered Windows Phone Marketplace developers.” (emphasis mine)
Early October I had got a mail from Microsoft for early access to the App Hub. But I screwed it up by forgetting to attach the app screenshots (how difficult can mail attachments be!). Anyways, come November 3rd I hope all issues are resolved and access to marketplace is restored so that I can view the existing app and submit the new app I’ve been working on.
Update Well, November 3rd has come and gone and nothing has changed. Still can’t access the Windows Phone 7 dashboard at AppHub. I have contributed to an existing thread showing my concern, here’s the link, http://forums.create.msdn.com/forums/p/62093/397994.aspx#397994
In other news, the windows phone developer tools got an update, this October update includes,
A new Bing Maps Control that improves map performance during user gestures.
The Capability Detection Tool, which scans your application and reports on detected phone capabilities that will be applied during ingestion to marketplace.
The WP Connect Tool, with which you can create a connection between the Windows Phone and your PC without requiring Zune to be running, so you can debug media APIs.
You can download the update from here. Details about the Capability Detection Tool and the WP Connect Tool can be found here and here. I haven’t installed this update as I don’t see the need yet.
And finally, “Programming Windows Phone 7” that Charles Petzold has been working on is now available for download and it’s free! You can download the pdf along with the sample code from here.
This is one book which I plan to read from start to end thoroughly. I have read the first two preview versions and highly recommend this to anyone serious about developing for Windows Phone 7. On being asked, Charles said that a print-on-demand soft cover version will be available soon which, of course, I plan to buy.
The official and the final bits of windows phone 7 developer tools are now available, go download them from here. The installer bundles everything you need to develop for windows phone 7 in a nice little package that includes,
– Visual Studio 2010 Express
– Silverlight for windows phone 7
– XNA Game Studio 4 for windows phone 7
– Expression Blend 4 for Windows Phone 7
– Windows Phone 7 emulator
You also get a phone registration and deployment tool which you can use to register and unlock a wp7 device, if you’re lucky enough to have one that is.The deployment tool works both on a physical device as well as the emulator and can be used to deploy your xap’s directly.
Another interesting bit of news today was the release of Windows Phone 7 Ads SDK, check it out here. I got really excited by this until I installed it and dug a little deeper. The documentation accompanying the install clearly says that, as of now at least, this can only be used by developers in the US,
disappointing, but hopefully it will be available for others outside of US soon. Off to installing the tools now, ciao.
Update: Forgot to mention about the Windows Phone 7 Training Kit. The samples have been updated to work with the RTM version of the tools and new tutorials have been added for pivot and panorama controls. You can download the kit from here.
If you follow me on twitter then this should not be news to you, the Mobile Minesweeper game that I’ve been working on (and off) forever has finally made it to marketplace and is available for download. There were a few surprises for me in store during the entire process. First, the amount of time it took for the app to be approved, one attempt and one working day! And second, the number of downloads! The app has been downloaded over 10,000 times since I made it available on the marketplace 10 days ago, even though the app is free I never expected so many downloads and it came as a pleasant shock. In this post I’ll share some resources that helped me to get started with marketplace and prepare for the entire process. And also some statistics related to my app.
Where do I begin?
To submit apps, you need to register for the marketplace and get a developer account. Go to http://developer.windowsphone.com and click on “Register for the marketplace”. Using this developer account you will also be able to submit apps for Windows Phone 7 when the marketplace opens for submissions early October. Here is a nice walk through the registration process,
There are a few minor differences between the slides shown above and the present process, but it’s easy to figure out. So far, the marketplace experience for me has been really smooth. Apart from the initial hiccup during registration where my credit card wouldn’t work, app submission and an update have gone through without any problems.
Submitting apps to marketplace
Your application must meet all the application submission requirements and pass several test cases (like 2 hours of hopper test) to be certified. The Windows Mobile 6.5 Application Certification Requirements are available here (pdf) for download, and I suggest going through this document at least once. Here is a walk through the application submission process,
From the start, I designed the app to support 3 resolutions 240×320, 240×400 and 480×800. I think that these are probably the most popular resolutions for windows mobile devices. The only other hardware requirement is that the device should have a touch screen. I had submitted the app for the US catalogue first, and after it passed certification I submitted the same for other English markets which include Australia, Canada, UK, India, and Singapore. Here are a few numbers,
EN-US Catalogue – available for 10 days
AU, CA, UK, IN and SG Catalogue –available for 8 days
Clearly, US is by far the biggest market, no surprise really. If you happen to try out the app, do let me know what you think. Any suggestions or feedbacks are welcome. Goodbye. Until next time.