08-30-2012 01:03 AM
Within Android Java you can search pre-existing indexed filestructure to locate all shared folder containing files of a certain media type (eg. jpg, png, bmp) using managedQuery()
Is there a similar method within cascades? (other than parsing the entire directory structure). The file browser that was previously posted has a filter but is built into a dialog. I am interested in creating my own gallery - and so I need to be able to do the querying dirctly.
Solved! Go to Solution.
08-31-2012 03:16 PM
Graham - All these QNX functions provide info in a single direcitory, such as "Returns a list of QFileInfo objects for all the files and directories in the directory". BB10 doesn't have a managed BB10 media index? So the best plan is then to recursively go through the root structure and create my own database? My fear is that creating this databse each start-up time will delay the initiial population of my gallery - making the start-up of my app kind of sluggish.
Innovatology - The qdb in that Multimedia does sound exactly like what I was looking for. However, I was unable to find it anywhere in the BlackBerry site. I'm thinking it doesn't exist.
09-03-2012 09:01 PM
I assume that by the time the gold release is out that there will be a file picker control that will allow you to filter by file type before you open it. That may not be exactly what you want but, maybe?
09-04-2012 12:02 AM
09-04-2012 06:03 AM - edited 09-04-2012 06:05 AM
qdb from QNX 6.5.x http://www.qnx.com/developers/docs/6.5.0/index.jsp
qdb.h is present in BB10NDK (C:\bbndk-10.0.06\target_10_0_6_384\qnx6\usr\inclu
And, from Qt docs: http://qt-project.org/doc/qt-4.8/qfileinfo.html
QDir QFileInfo::absoluteDir () const
Returns the file's absolute path as a QDir object.
09-04-2012 09:10 AM - edited 09-04-2012 09:17 AM
My bad. Got messed up between absoluteDir and abosultePath. Stared at that so many times and just missed the forest cuz of the trees.
So Qdb is there. Cool. Then probably we'll have to wait to gold until we are provide with a BB10 DB to do any media querying.