Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Registering Applications for Data Sharing (custom URIs and MIME-types) | Defining Data Sharing for an Application
 
Defining Data Sharing for an Application
To register for data sharing, the registerDataSharing Ant task is used. Definitions should be given in the project's targets/_defaults_.xml, and look like this:
<registerDataSharing>
<entry scheme="customurl"/>
<!-- App will handle URIs starting "customurl:" -->
<entry mimeType="application/pdf"/> <!-- App will accept PDFs -->
</registerDataSharing>
If you want to just handle audio files:
<registerDataSharing>
<entry mimeType="audio/*"/> <!-- App will accept any audio -->
</registerDataSharing>
You can find a list of currently supported MIME-types for files in the section below: Supported MIME-types.
If you want to just handle custom URIs:
<registerDataSharing>
<entry scheme="myurl"/> <!-- App will handle URIs starting "myurl:" -->
</registerDataSharing>