Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to launch Nokia Store client from Java ME

From Wiki
Jump to: navigation, search

This article explains how to launch Nokia Store client from a Java ME MIDlet.

Article Metadata
Tested with
Devices(s): Nokia Asha 310, Nokia PureView 808
CompatibilityArticle
Created: gaba88 (27 May 2013)
Last edited: hamishwillee (16 Aug 2013)

Contents

Overview

Launching Nokia Store from within your application can be very useful:

  • Asking the user to rate your application, which will convert in getting more downloads from store.
  • Giving links of your other applications that the user can follow direct to the store to download them.

The approach generally used is to launch Nokia Store URL in the device's web browser: the operating system then takes care of launching Nokia Store. This solution works perfectly on Symbian but for Series 40 the mobile web browser doesn't open the store - instead it just opens the app page in mobile browser itself.

The following sections provide more detail.

Symbian

In Symbian, launching the store is straight forward. All we need to do is invoke the application URL in the mobile web browser and that will take care of launching the Nokia Store client. We do this using the platformRequest(appurl) as shown below:

String appurl = "http://store.ovi.com/content/345881";
bool retVal = platformRequest(appurl)

The return value of platformRequest gives the status of the application. If true the application will continue to run, and if false the application will close.

Series 40

For Series 40, there is no generic method to launch Nokia store client from Java ME on Series 40. However if an application is Manufacturer Signed then we can use the javaapp locator to launch the Nokia store midlet:

bool retVal = platformRequest("javaapp:midlet-name=NokiaStore;midlet-vendor=Nokia);

The method described for Symbian (invoke the browser using platformRequest method) opens the URL in the browser. While the app can then be downloaded from this page (meeting the use cases described in introduction), this is not as effective as opening the Nokia Store client.

Summary

This article shows how to launch the Nokia Store client from Java ME on Symbian. It also explains the options on Series 40.

References

This page was last modified on 16 August 2013, at 03:38.
90 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×