Launching your app for a uri scheme in Harmattan/Nokia N9

Sometimes an application is more compelling if the user can launch it by clicking on a custom uri scheme. Harmattan just provides that. In <yourapplication>_harmattan.desktop file add the following line

MimeType=x-maemo-urischeme/foo

Where foo is the custom uri that your app handles. When some other application refers to this uri scheme like QDesktopServices::openUrl(QUrl(foo://bar)), system launches your app.

 


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s