title: Invoking native applications on Blackberry
body: <p>I am trying to invoke the native application for MEDIA content, so I can view the pictures in the device, and when the user selects an image, the selected one will be loaded into the application. Well I am invoking the Media content by the following code:</p>
  
  <pre><code>final Registry registry = Registry.getRegistry(com.UiApp.class.getName());
  final Invocation invocation = 
      new Invocation(null, null, 
          BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER, false,
          ContentHandler.ACTION_OPEN);
  invocation.setArgs(new String[] { 
      BlackBerryContentHandler.MEDIA_ARGUMENT_VIEW_PICTURES});
  try { 
      registry.invoke(invocation); 
  } catch (Exception ex) { }
  </code></pre>
  
  <p>The Invocation opens successfully, But when pressing the menu key and holding to see the running applications, I noticed that this invoke is running in a seperate application from my app.</p>
  
  <p>I want to invoke the media application within my application and without having another application running. How to do that?</p>
  
  <p>Thanks...</p>
  
  <hr>
  
  <p>For example let's take an application called called Whats app. you can see clearly that they are invoking the native API of the gallery into their application without having any other icon for running applications, and when you enter the gallery straight from the phone, you will not open the one for the application but a different one!! So that made me sure that a way exists to run the native applications as a part or my app.</p>
  
  <p>You can see what I meant by choosing to send an image in the whatsapp application for OS 6.0 and above</p>