Mobile-SDK-Android-V5 icon indicating copy to clipboard operation
Mobile-SDK-Android-V5 copied to clipboard

Image Capture Command

Open PeimanAtaeiJPDroni opened this issue 2 months ago • 3 comments

Hi DJI,

I need to write a function or command to capture image with payload in the app but not as an action in a mission, a function that let me capture image freely when I need it.

Would you please give me the sample code or reference for this.

Thank you

PeimanAtaeiJPDroni avatar Sep 25 '25 10:09 PeimanAtaeiJPDroni

Agent comment from YIGUI LIU in Zendesk ticket #157910:

Dear Developer,

The communication between MSDK and the payload is implemented through the payload management class IPayloadCenter. You can refer to the tutorial documentation: https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/payload2.html, which explains how to set the value of payload controls via setWidgetValue and send data or control commands to the payload via sendDataToPayload.

In addition, for implementing large data transmission, it is recommended to use the MOP communication function of MSDK and PSDK: https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/sdk-interconnection.html

Best Regards, DJI Innovations SDK Technical Support Team

°°°

dji-dev avatar Sep 26 '25 03:09 dji-dev

Image

I can capture image with this command but I want to know if there is any possibility to capture image with specific name or adding some characters to the image name?

I want to capture images with specific names and numbers.

PeimanAtaeiJPDroni avatar Oct 10 '25 13:10 PeimanAtaeiJPDroni

Agent comment from YIGUI LIU in Zendesk ticket #157910:

Dear Developer, I hope this email finds you well

You can use CameraKey.KeyCustomExpandFileNameSettings to set a custom suffix for the naming of captured images. It supports English letters, numbers, and Chinese characters. For special characters, only "-" is allowed. The maximum length is 70 characters.

For more details, please refer to the API documentation: https://developer.dji.com/api-reference-v5/android-api/Components/IKeyManager/Key_Camera_CameraKey.html?search=keycustomexpandfilenamesettings&i=0&#key_camera_customexpandfilenamesettings_inline and the FAQ documentation: https://sdk-forum.dji.net/hc/en-us/articles/11720132480409-How-to-use-KeyCustomExpandFileNameSettings

Best Regards, DJI Innovations SDK Technical Support Team

°°°

dji-dev avatar Oct 11 '25 03:10 dji-dev