I have this ContentPeer to provide me with a URL to an audio file. It should not play the selected file.
ContentPeer {
id: audioSourceSingle
contentType: ContentType.Music
handler: ContentHandler.Source
selectionType: ContentTransfer.Single
appId: "filemanager.ubports_filemanager_1.1.4"
}
This works (although one can select any file, not just audio files).
But I would rather not have to specify the version number.
I tried:
Not specifying the appId. The code now displays a ContentPeerPicker, with FileManager, Morph and Music. Filemanager works, but Morph shows only downloads so is limited, and Music nicely shows audio files but plays them when selected. That is no good obviously, but I don't know how to fix this.
Specify appId: "filemanager". Doesn't work.
Specifiy appId: "filemanager.ubports_filemanager". This shows the file manager, but when you select a file, it asks what you want to do with it, and that does not include 'return the URL' :-(.
Anyone any ideas about how to get rid of the version number but retain functionality? Is there a way to obtain a full appId from a partial one?