Hi, I'm implementing feature that allows open file from my application with external installed application. My task is to list available applications filtered by mimetype and let user choose which one use to open. I'm able to list installed application, but how can I filter them by mimetype?
Code:
int[] handles = CodeModuleManager.getModuleHandles();
add(new LabelField("module handles count: " + handles.length));
int countApp = 0;
for (int i=0; i<handles.length;i++) {
if (!CodeModuleManager.isLibrary(handles[i])) {
countApp++;
add(new LabelField("-" + CodeModuleManager.getModuleName(handles[i]) ));
}
}
add(new LabelField("apps count: " + countApp));