Here is the code:
VibrateController vibrate = VibrateController.Default;
vibrate.Start(TimeSpan.FromMilliseconds(500));
Msdn: http://msdn.microsoft.com/en-us/library/microsoft.devices.vibratecontroller(v=vs.92).aspx
Here is the code:
VibrateController vibrate = VibrateController.Default;
vibrate.Start(TimeSpan.FromMilliseconds(500));
Msdn: http://msdn.microsoft.com/en-us/library/microsoft.devices.vibratecontroller(v=vs.92).aspx
I found a brown package waiting at my door when I returned home yesterday and upon opening it I was surprised to find that Microsoft had sent me my Nokia Lumia 800 as part of the “30 to launch” program.
Here are some of my thoughts upon unboxing it:
This is definitely a nice phone!
When I was trying to reference the Bing Route service in a WP7 app (http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc), I kept getting errors from SvcUtil that the service could not be referenced properly. Some of the error messages looked like the following:
Custom tool warning: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://dev.virtualearth.net/webservices/v1/route/contracts']/wsdl:portType[@name='IRouteService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://dev.virtualearth.net/webservices/v1/route']/wsdl:binding[@name='BasicHttpBinding_IRouteService']
Not sure why the errors were being raised, but what I found was that if I deleted the existing service reference and then restarted Visual Studio and then re-added the service reference, the errors went away. WEIRD! but it works now.
Came across “Your Last About Dialog” (YLAD) project for Windows Phone 7. It makes it extremely easy to build an About page for your WP7 application (About pages are a requirement for WP7 apps, without which you will fail certification).
Using YLAD is as simple as installing it as a NuGet package for your phone project, configuring a few values in a XML file and setting up the link to bring up the page.
In less than 10 minutes I had the following Pivot pages created:
Install YLAD via NuGet or by downloading it from CodePlex: http://ylad.codeplex.com/
In addition, check out the one page documentation that goes into the configuration of the About page: http://ylad.codeplex.com/documentation
MSDN reference on the WP7 application lifecycle: http://msdn.microsoft.com/en-us/library/ff817008(VS.92).aspx
And remember to enable “Fast Application Switching” (FAS) in your app, all you need to do is to check the IsApplicationStatePreserved property and perform state loading only if the property is false.
private void Application_Activated(object sender, ActivatedEventArgs e)
{
if (!e.IsApplicationInstancePreserved)
{
LoadStateFromStorage();
}
}
Scenario: You need to define a string value that needs to be reused across your application (eg: Application Title)
One way the above scenario can be implemented is by using the “Application.Resources” in the App.Xaml file.
The first step is to define the string resource. This is done by defining the type (clr:String) and a key that will be used to access the string. The value is also defined here:
<Application.Resources>
<clr:String x:Key="ApplicationTitle">OptiRoute</clr:String>
</Application.Resources>
The above resource can then be accessed in your XAML markup using StaticResource markup extension:
<TextBlock x:Name="ApplicationTitle" Text="{StaticResource ApplicationTitle}" Style="{StaticResource PhoneTextNormalStyle}"/>
PhoneGap is an open source mobile app development platform that allows you to create an app for Windows Phone 7 (WP7) and the same app can also be run on other app platforms. Windows Phone support was added as part of version 1.3.
Read the quick start to see how easy it to create a WP7 app.
And here are some videos on using PhoneGap with WP7: http://phonegap.com/2011/12/20/phonegap-for-windows-phone-getting-started/
And more information can be found at this blog-post: PhoneGap for WP7 dissected
Got to try out the new WP7 mango capability of being able to connect to hidden networks. It works. Nothing more to it. It was one of the features that I was waiting quite eagerly for.
It works…. Enuff said.
Awesome!
If you get the “Neutral Resource Language” attribute is missing when uploading a XAP during app-submission, then you need to set the Neutral Language.
The Neutral Language setting is set via the project properties under the Assembly Information dialog.
Important: Once you have uploaded your app, you cannot change the Neutral Language to setting that narrows the language set. (example: if your previous version was English, then you cannot select English (United States)).
Some of the new features that I am discovering today…..
WP7 now has vision search:
Another feature that I have been waiting for WP7 to get is the ability to add hidden networks.
Just go to the phone settings app and check under Wifi. Under the advanced options, you can now click the plus (+) button, to add hidden networks.
Search using Bing Voice:
Yes, Windows Phone 7 will support multi-tasking with the Mango update.
To check it out, just press the back button for a couple of seconds and you should see a screen that displays all the applications currently running.
To kill an app, select it from the multi-tasking screen and then hit the back button. (The windows button will continue running the app in the back ground).
During submission of a WP7 application, you need to provide various images that are used in displaying the app in the marketplace. Here are the current requirements for the different images.
Large Mobile App Tile (173 x 173 pixels @ 96 DPI)
Small mobile app tile (99 x 99 pixels @ 96 DPI)
Large PC app tile (200 x 200 pixels @ 96 DPI)
Just 13 years old and already has a portfolio of 20 apps.
And the portfolio of apps: http://www.appsfuze.com/publisher/simzzdev
Finally, the February and March updates for my Windows Phone 7 Samsung Focus are available….. installing them right now through zune.
And the installation experience was flawless!
A developer account on WP7 app hub allows you to publish 5 free apps for free, after which you need to pay for every new free app you publish. Here is some additional information regarding the quota.
To me, the above is an extremely reasonable cost of publishing apps to the market-place because if you think about it, this is what you get for $100 from Microsoft:
An excellent resource put together by the Silverlight SDK team, if you are developing a WP7 app, print it and paste it on a wall. Many of the guidelines will help you through the certification process and maybe even get your app through on its first submission.
Windows Phone 7 – Design Guidelines – Cheat Sheet
The tips are copied from the post here:
Navigation, frames and pages
Application Bar
Back button
Screen orientations
Application icon
Tiles and tile notification
Themes
Application settings
Touch input
On-screen keyboard
Canvas/Grid for layout
Panorama control/pivot considerations
Text guidelines
If you ever get the less than information exception message: "Manual rotation cannot be used in automatic rotation mode", then it is most probably because you are using Microsoft’s AdControl for Windows Phone 7 and you created your AdControl instance with rotation enabled and you also requested the control to display a new ad.
Here is what you need to know:
When you specify that rotation is enabled in the AdControl constructor, then the AdControl will automatically display new ads and you don’t have to do anything. But if you do enable rotation of ads, then you cannot call “RequestNewAd”, else you will get the exception shown above.
Thoughts:
The error is basically stating that you cannot manually rotate Ads when the Ad control was instantiated to automatically rotate the ads. The reason I don’t like the exception message is that just by looking at the message its hard to figure what it means or what caused it. In addition, the fact that the message was being caused on the Windows Phone, it led me on a wild goose chase looking for issues with the code that handled orientation changes of the phone. (Though, I must admit that if I had groked the AdControl docs, I would have known what the rotation argument actual stood for, instead of assuming that it meant the control supports orientation changes).
More Info:
RequestNextAd: http://msdn.microsoft.com/en-us/library/ff973787(v=msads.10).aspx
AdControl class: http://msdn.microsoft.com/en-us/library/ff973756(v=msads.10).aspx
This infographic put together by the folks at Technobolt allows you to quickly compare the important features of all the WP7 phones available, so that you can make the best choice based on your needs (Click to view it in its full glory):
I bought the Samsung focus based on its screen type (Super Amoled) and its weight and I love it!