Oxygene and WP8 – MapDownloaderTask Launcher

Oxygene and Windows Phone 8 tutorials – Article Index

The MapDownloaderTask launcher lets the users to download map data which can be used offline in their Windows Phone device. The MapDownloaderTask launcher launches the Map Settings app where the user can select the region for which the map should be downloaded.

How to use the MapDownloaderTask Launcher in Windows Phone 8 with Oxygene?

To use the MapDownloaderTask launcher with Oxygene, follow the below steps.

1. Include the following namespace in the code behind file.

uses
Microsoft.Phone.Tasks;

2. Create an instance of the MapDownloaderTask and call the show method as shown below. This will launch the Downloaded Maps App which lists the maps that are already downloaded. To start downloading the maps for a new region, tap the “+” button in the application bar and select the region.

var mapdownload: MapDownloaderTask := new MapDownloaderTask ();
mapdownload.Show();

Oxygene and WP8 - MapDownloaderTask Launcher

Note that you require an active internet connection on your phone / emulator to download the maps.

Download the sample source code on MapDownloaderTask Launcher in Oxygene and WP8 here

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...