09-28-2012 04:29 AM
Is there anything new we can use to create a filebrowser? It still works, but it's strange. Also, it doesn't show some extension if they are not known. Is it an error in implementation (I'm using the code found at "FileBrowse sample : Using native filebrowse and filesave dialog in Cascades").
Thanks for help.
Solved! Go to Solution.
09-28-2012 09:21 AM - edited 09-28-2012 09:21 AM
Sorry, but I don't understand what you're asking You want to use your own custom extensions like in deprecated api or I'm wrong ?
09-28-2012 11:23 AM
Actually I never succeded to display document with an unknown extension in the file browser. I would like it to display all lib files (they are kind of sound files) that it find in the document folder.
Is there an easy way to do that, or must I create my own browser?
Thanks for your help
09-28-2012 11:42 AM
09-28-2012 11:48 AM
There is no special solution, you just have to follow what is written in the sample. I changed a line in the qml file and stupidly copy back the code from the documentation page, so my first changes were removed...
As proposed by borceg, The filepicker is all that is needed https://developer.blackberry.com/cascades/referenc
09-28-2012 11:53 AM
09-28-2012 12:23 PM
the answer is here:
The application invoking the FilePicker can also provide a custom filter and/or the directory that FilePicker will display on open. This will override the filter and folders associated with the file type. The filter is the list of string patterns that supports wildcards. For example, if the filter string is "*.jpg", FilePicker will list files where the file has an extension of ".jpg".