
Friday, November 19, 2010
Create Theme Friendly Buttons in WP7

Saturday, November 13, 2010
No Option to Search For Directions In Windows Phone 7 Map Application!
I was devastated today when I pull out my HTC HD7, tab on the map application and proceed to look for directions to a famous eatery in Singapore only to realize that I have no way of doing that on my phone!!!! :’( This is pretty weird as stated here, this feature is very much available in WP7.
Googl-ing around, I found out this possible solution here. Just to summarize the solution from the forum. This is what you need to do.
- Tab on settings
- Tab on region & language
- Choose English (United Kingdom) from Region format, System locale and Browser & search language
- Tab on “Tap here to accept changes and restart your phone”
Presto! you can now search for directions via the map application! Happy “mapping”~
Wednesday, November 10, 2010
Curreny7 Live on Windows Phone 7!
Yippe!
I checked market place this evening and realized that my application has been published and available for download! Its a very simple application, just a straightforward currency convertor tool. Had this thought when I was travelling in Australia and realized that there are not many free currency convertor available in marketplace. Most of them come with a fee which sorts of irks me.
The thought of paying for free available information such as currency exchange rate really doesn’t make sense. Thus I decided to put in a couple of hours work and tada! Currency7 is born =) Most of my time was spend deciding how the splash screen would be. I really like the whole metro design philosophy the WP design team came up with. As far as branding is concern, would definitely try to make the application adhere to the design direction. Since metro is pretty focus on typography, I settled with playing around with words, the brand colours and the iconic “icon in a circle“ imagery.
Anyway, I really had great fun creating this app which also gives me the chance to experience first hand going through the application submission process. It wasn’t all smooth, but at least I manage to get pass a couple of huddles in the process. *my first submission was rejected as it failed the certification testing =( *
Anyway one looking for a free and decent looking currency convertor please give Currency7 a try. I will be updating it with more features in future releases =)
Thanks and enjoy! =)
Tuesday, November 9, 2010
WritableBitmap to MemoryStream to MediaLibrary
Take a look at this code
WriteableBitmap wb = new WriteableBitmap(image1, new TranslateTransform());
myFileStream = new MemoryStream();
wb.SaveJpeg(myFileStream, wb.PixelWidth, wb.PixelHeight, 0, 85);
myFileStream.Seek(0, SeekOrigin.Begin);
MediaLibrary library = new MediaLibrary();
Picture pic = library.SavePicture("SavedPicture.jpg", myFileStream);
myFileStream.Close();
Most importantly is this piece of code:
myFileStream.Seek(0, SeekOrigin.Begin);
if you do not do this before you save to MediaLibrary, an exception will be thrown with an error message that goes something like "value out of range"...
Another pointer is to disconnect the device from Zune when you run this piece of code. Otherwise you will get an exception saying "Unexpected error has occur".
Really hope MS do something about this whole Zune thingy. It can be quite troublesome when it comes down to debugging.
Saturday, November 6, 2010
Windows Phone 7 MAC address
Anyway, I manage to get the MAC address of my HTC HD7 from my linksys wireless-G router. Thought I will just document the steps just in case someone else needs it.
1. Login to the router management console by entering 192.168.1.1 in your favorite web browser
2. Disable MAC address filtering on the router
3. Connect your WP7 device to the router
4. Click on Status from the menu bar then select Local Network from the submenu bar
5. Click on the button "DHCP Client Table"
6. Note down the MAC addresses listed in the table displayed in a popup window.
7. Close the window and click on "Wireless" from the menu bar
8. Click on "Wireless MAC Filter" from the submenu bar
9. Click on "Edit MAC Filter List" button
10. Do a cross reference check. The MAC address listed in the "DHCP Client Table" and not on the MAC filter list should be the MAC address of your WP7. (note: several mac address might show up on the DHCP Client Table which doesn't have a matching entry in the MAC Filter List if you are surrounded by wireless leeches around you ;) )
11. Enter the MAC address into the filter list and enable your mac address filtering.
12. Reconnect your WP7 device
Feel free to leave any comments if anyone has a better way of doing this on a linksys wireless-g router :)
P.S. hmm...I should seriously consider upgrading my router to a wireless n router hehe ;)
