I'm developing a mobile web application and I have been given some pretty strict style guidelines from the designer. In all other mobile OSes I have stopped the OS from auto creating a link from the phone number in the listing page...However I can't accomplish that in WP7.
For the others I used
<meta name="format-detection" content="telephone=no" />
Any ideas how to do this in WP7?
I've had the same problem. In fact, the phone number, fax number and address do not show up at all regardless of the CSS. There's not much return on that. Until a proper solution is found I have resorted to adding a space between every number/letter in the address and phone numbers and then changed the letter-spacing to -2px in CSS to tighten the spacing back up. WP7 no longer recognizes them as an address or phone numbers and they look just as they would otherwise.
Related
Not sure whether this is the right site for this question. I am looking for a mobile phone which uses at least 3G, but has as little features as possible. For example, no apps, no photos, no radio, etc. The only things which should be there are calling and texting.
I am trying to build a UI which should work on all mobile platforms. But currently the UI is getting distorted on Windows Phone. (Displays correctly on other devices like Android, IOS..). The text boxes are places one below other but are getting overlapped on each other, truncating the bottom part of each text box.
Need to know the correct way to design the UI, so that it should display properly on all mobile platforms.
The Windows Phone target is a dead end target as Microsoft has effectively abandoned the platform. We are now focusing on the Universal Windows Platform and have a developer guide section for it here.
1) What I have understood that if you develop a application in metro style, it work in desktop, tablet and also phone?
2) I can understand if I use a standard template like grid template for developing my metro style app, that grid view will be converted to listview because of visual state transitions and will work in Windows phone. but my doubt is if we use a blank app template and develop whatever UI I developed as per client requirement will it be able to render or show up in windows phone?
A WinRT app (I assume that is what you mean by Metro) will run on the desktop/tablet and theoretically a Windows Phone 8 device without code changes. First, note that we are talking about Windows Phone 8 (not the current Windows Phone 7) and that it runs, not that the UI layout will be exactly right.
You can design the app however you like, whether it conforms to the Metro design or some other look altogether. If it is developed on WinRT, it should be code compatible with the phone as well.
What is the best practice to add a phone number on a web page?
It should be possible to call the number directly from mobile browsers and there should be no false links for desktop browsers.
Problems I am facing:
Windows Phone does not understand plain text (+123 456 789)
Desktop browsers IE6-9, Safari, Opera redirect from a tel link (a href="tel:+123 456 789")
Windows Phone does nothing when adding onclick="return false"
I generally use something like this:
<input onclick="window.location.href='tel:0000000000'"></input>
I tested this on multiple Windows Phone devices and it works just fine. Google uses this in their mobile version of the Maps website, when you try to lookup a place that is nearby to a specific location.
Does windows phone 7 have a similar component likes UITableview in iPhone?
I am trying to find an api mapping published by Microsoft, but to no avail.
I welcome any comments.
Your best bet would be to bind the data to a ListBox.
Here is an example.
You may be interrested in http://windowsphone.interoperabilitybridges.com/
It includes details on getting up to speed on Windows Phone 7 development for people familliar with developing for other platforms. (Including iOS.)
Tim is correct that you will most likely end up using a ListBox, but here is a bit of a longer answer:
I believe you are referring to the iOS to Windows Phone API mapping tool, which helps map common iOS APIs to their Windows Phone equivalents. Unfortunately in this case it will not provide a direct answer to your question, as iOS and Windows Phone take different approaches to the UI layer:
Apple enforces a strict MVC pattern on each of its views. In fact, they provide a set of base view controller classes which already support much of the behaviors you see in typical iPhone applications. The most common of these include UITableViewController, UINavigationViewController, UITabBarController and the standard UIViewController.
Windows phone 7 does not require you to use an MVC pattern, and therefore does not include the standard views that are available in iOS. Instead it is left up to you to choose and implement whatever UI pattern that you choose. Many choose the MVVM Pattern, but even then there are multiple toolkits you can use (This one seems pretty popular).
To start, with most users will just use the graphical designer built into Visual Studio to drag and drop controls onto each page of their application. If you want to learn more I recommend watching the Windows Phone 7 Development for Absolute Beginners series or 31 days of Windows Phone 7 series. Most Silverlight XAML layout and APIs techniques are available in Windows Phone, so 31 days of Silverlight may also help.