How to invoke the Classic Camera app

The Classic Camera app can be invoked using the following code…


InvokeManager mInvokeManager = new InvokeManager(this);
connect(mInvokeManager,
      SIGNAL(childCardDone(const
      bb::system::CardDoneMessage&)), this,
      SLOT(childCardDone(const
      bb::system::CardDoneMessage&)));
InvokeRequest request;
request.setAction("bb.action.CAPTURE");
request.setTarget("com.ebscer.classiccamera.card");
request.setMimeType("image/jpeg");
mInvokeManager->invoke(request);

The response data contains the file name of the captured image.