03-05-2009 09:38 PM
03-06-2009 02:28 AM - last edited on 03-06-2009 02:30 AM
Do you want to open "bare" file explorer (see Bare.png image below) ?

Or it is enough to open "Rich" media explorer like is shown below on picture (Pictures.png) ?

To open bare file explorer from media explorer a user needs to open menu over an icon and select "Explore"(see picture below: Pictures-Menu.png)

03-06-2009 03:38 AM - last edited on 03-06-2009 03:45 AM
03-06-2009 03:57 AM
Check the code below.
It runs for me.
int handle = CodeModuleManager .getModuleHandle("net_rim_bb_file_explorer"); if (handle <= 0) { System.out.println("HANDLE IS INVALID"); return; } ApplicationDescriptor[] appDescriptors = CodeModuleManager .getApplicationDescriptors(handle); if ((appDescriptors==null) || (appDescriptors.length == 0)) { System.out.println("App descriptors are missing"); return; } String[] args = {"", "" }; ApplicationDescriptor descriptor = new ApplicationDescriptor( appDescriptors[0], "File explorer", args, null, -1, null, -1, ApplicationDescriptor.FLAG_SYSTEM); try { ApplicationManager.getApplicationManager().runAppl
ication(descriptor); } catch (ApplicationManagerException e) { System.out.println("App cannot be launched"); System.out.println(e.getMessage()); return; }
Does it work for you ?
03-06-2009 04:14 AM
03-06-2009 04:15 AM
03-06-2009 04:21 AM
03-06-2009 04:28 AM
Media icon appears in "Switch application popup" and it is possible to switch to another app and after that switch to Media explorer again.
If I close the "parent" application which invoked Media Explorer - then Media Explorer will remain opened.
It is because Media Explorer is a separate independent application, it is not "child" dialog box according to your application to be closed too.
Like in Windows you have used exec() command and launched some *.exe file.
When parent application closed, the child application will remain. It is another process, which is not tied to the parent app.
03-06-2009 04:29 AM
03-06-2009 04:32 AM - last edited on 03-06-2009 04:36 AM