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.
Code snippet demonstrating use of the Share UI Interface on Meego Harmattan from a Pyside application.This allows to open the "Share" interface from your own application.
bus = dbus.SessionBus()
# Get the Dbus ShareUI object
shareService = bus.get_object('com.nokia.ShareUi', '/')
# Get the share method from the Dbus interface so it can be called later
share = shareService.get_dbus_method('share', 'com.nokia.maemo.meegotouch.ShareUiInterface')
# Create the item you'd like to share, making sure strings are URLencoded
description = urllib.quote('Support for Nokia Developers')
title = urllib.quote('Nokia developer')
link = urllib.quote('http://developer.nokia.com')
item = 'data:text/x-url;description=%s;title=%s,%s' %(description, title, link)
# Place all the items in a list, and call the share method on the Dbus object
- For C++ implementation, please see https://github.com/matyjas/share-bear