×
Namespaces

Variants
Actions
(Difference between revisions)

Nokia MixRadio app-to-app protocol for Windows Phone 8

From Nokia Developer Wiki
Jump to: navigation, search
chintandave_er (Talk | contribs)
(Chintandave er -)
chintandave_er (Talk | contribs)
(Chintandave er -)
Line 88: Line 88:
 
! Task !! URI
 
! Task !! URI
 
|-  
 
|-  
|  Play Artist Mix || nokia-music://play/artist/?artist={name}
+
|  Play an Artist Mix || nokia-music://play/artist/?artist={name}
 
|}
 
|}
  
.
+
 
 
Example:
 
Example:
 
<code csharp>
 
<code csharp>
 
Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://play/artist/?artist=green day”));
 
Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://play/artist/?artist=green day”));
 +
</code>
 +
 +
 +
=== Show Gigs Around You ===
 +
{| class="wikitable"
 +
|-
 +
! Task !! URI
 +
|-
 +
|  Show Gigs Around You || nokia-music://show/gigs
 +
|}
 +
 +
 +
Example:
 +
<code csharp>
 +
Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://show/gigs”));
 +
</code>
 +
 +
=== Search for Gigs ===
 +
{| class="wikitable"
 +
|-
 +
! Task !! URI
 +
|-
 +
|  Search for Gigs || nokia-music://search/gigs/?term={term}
 +
|}
 +
 +
 +
Example:
 +
<code csharp>
 +
Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://show/gigs”));
 
</code>
 
</code>

Revision as of 21:38, 15 November 2012

This article explains how to integrate our application with Nokia Music services and elements using Nokia Music API for Windows Phone.

SignpostIcon XAML 40.png
WP Metro Icon WP8.png
Article Metadata
Compatibility
Platform(s): Windows Phone
Windows Phone 8
Article
Created: chintandave_er (15 Nov 2012)
Last edited: chintandave_er (15 Nov 2012)

Contents

Introduction

Windows Phone 8 Supports app-to-app protocol even for 3rd party application. That means we can launch one app from other app by using Launching API for Windows Phone. Here We will show how to use Nokia Music app-to-app protocol for Windows Phone 8 in our application to get use of Nokia Music service. The Nokia Music Windows Phone API providers Launchers that allow integration with Nokia Music in the same easy manner.

What is app-to-app protocol

App-to-app protocols allow one app to launch another app with a specific URI Scheme. With Windows Phone 8, we can also register our app as 3rd party application to support app-to-app protocol and can allow other app to open our app and use elements of our app into their app.

But here we will see how to use Nokia Music API Launchers for Windows Phone 8 to use various services of Nokia Music. To call app-to-app protocol, we need to use Launcher.LaunchUriAsync(Uri) method and pass URI schema in it. For example, to launch Nokia Music app from other app call Launcher.LaunchUriAsync(Uri) with URI Schema nokia-music://

Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://”));


Nokia Music app-to-app protocol

Here are the list of Nokia Music app-to-app protocol with example.

Launch App

Task URI
Launch App nokia-music://

Example:

Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://”));

Search Anything

Task URI
Search nokia-music://search/anything/?term={searchtext}

Example:

Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://search/anything/?term=green day”));

Show Artist Details

Task URI
Show Artist Details By Id nokia-music://show/artist/?id={id}
Show Artist Details By name nokia-music://show/artist/?name={name}

Example:

Windows.System.Launcher.LaunchUriAsync(new Uri(“ nokia-music://show/artist/?name=green day”));

Play Artist Mix

Task URI
Play an Artist Mix nokia-music://play/artist/?artist={name}


Example:

Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://play/artist/?artist=green day”));


Show Gigs Around You

Task URI
Show Gigs Around You nokia-music://show/gigs


Example:

Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://show/gigs”));

Search for Gigs

Task URI
Search for Gigs nokia-music://search/gigs/?term={term}


Example:

Windows.System.Launcher.LaunchUriAsync(new Uri(“nokia-music://show/gigs”));
239 page views in the last 30 days.