I want to be able to get directions to an address I have hard coded into a button. I want to be able to touch the button that reads "Directions Here" and have it switch to the bing maps application on the phone and give me driving directions...
Q: how can I open another application from within my application? or how can I get the directions to my address from a user's current location to appear?
You can use Bing Maps directions task. helping link http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394024(v=vs.105).aspx
or you can use bing map Rest services. helping link: http://msdn.microsoft.com/en-us/library/ff701713.aspx
Related
My App has a page contain some tiles layout in a canvas.
Now there is some new needs:
I would like to make these tiles can move and zoom just like wp7 OS desk.
Can you please share with me that if there is any existing control(Library) to achieve the above functionality or otherwise give me a Road Map how to achieve this functionality?
Telerik has got a Control Library for Windows Phone that contains a control called HubTile. Have a look here to see if the control satisfies your needs.
I know that you can show current GPS moving location on map with WP7 but i have an application that works offline, i must show user's location according to some other already saved locations in application, how can i show user location?
If you have the coordinates and want to display on bing maps im afraid its not possible.. bing map doesn't work offline. You need some way to cache the map tiles but not on bing maps.. the terms of bing maps doesn't allow you to save their map images. you can look at the following links see if they do any help.
Map Tile Caching for Offline Viewing
Windows Phone 7 Map Control with custom layer in offline mode
if not you can try caching the location as an image tagged to the location..
I wanted to ask is it possible to Show Directions in Map View (Bing) in Windows Phone 7. I want to show the route (lines) from present location to a specific location in my Map Component.
I had gone down the path of in-app routing, as per the link Avijeet Singh provided, however I'd recommend against it. It took a significant amount of effort to handle real world scenarios and in the end the result was not as smooth or polished as the native Bing Maps experience. Having been there, unless there is a very compelling reason to display the routing information in app, I'd advise that you look at using BingMapsDirectionTask. If you've implemented Fast Application Switching then the switch back / forth to the native maps won't be too jarring for user. Even having implemented routing in-app I ended up removing it and using the BingMapsDirectionTask
Go through his link
http://msdn.microsoft.com/en-us/library/ee681887.aspx
its for silverlight and will work on wp7 with some modifications.
here is another one if you just want to show a polyline on map control
http://guinnesslee.wordpress.com/2011/06/25/plotting-routes-onto-bing-maps-in-wp7-and-storing-it-an-obversable-collection/
I want to create my custom pin Start Button to win phone 7.
For example in windows phone 7 i have the button of Marketplace pinned. When i receive update the pin button shows the number of updates i received.
Another example is the calendar, when i create some appointment, these appears in pin button.
I want create something similar. I want a big pin button with some information. Any direction?
The answer to this will probably depend on whether you are targeting Mango or not.
If you are targeting v 7, you will need to look into Notifications. This MSDN article will give you some good information as a starting point.
In Mango (7.1) you can accomplish a lot more manipulation of tiles from inside your app. This MSDN article is a great start point for that.
Please note, however, that your user will need to have the application tile pinned in order to get the behaviour you are describing.
I try to add Tile form ListBox Item of my app:
Like Friend hub, Game hub...
Let User tap one item, show "pin to start",
then more Tiles on start page with different picture or word.
Is it possible ?
If you mean adding to the phone home screen, there can only be one tile for your app. This is added via the application list to the right of the home screen via tap and hold on your app icon.
Do you mean that you want to add more than one tile for your application to the home page in the same way that you can with map locations from the Map app and with notes from the OneNote application? If so, then you can't do this with the current development framework, though I personally hope that it will be available in the future.