Send To Desktop API for Android

Posted on Monday, April 4th, 2016 by Ash Ryan
Category: Android
Tag: Send To Desktop API

Hi Android developers! As part of our latest release of the Creative SDK, we’ve published our first developer guide for the Send To Desktop API on Android.

With the Send To Desktop API, your app becomes a seamless part of the creative workflow, letting users send images from your app directly to Photoshop, Illustrator, or InDesign on the desktop.

Send To Desktop API

To your users, it feels like magic: with the push of a button on their Android device, Photoshop (or Illustrator, or InDesign) launches on the desktop with the image open and ready for work.

In the code, a single method call is all you need to add to your Creative SDK integration. Let’s take a quick look.


How it works

The Send To Desktop API offers a few methods you can choose from to send the kind of content your app is working with.

Say, for example, you have a bitmap that you’d like to send over to Photoshop. You could do it like this:

AdobeSendToDesktopApplication.sendImage(bitmap, creativeCloudApplication, "My image title", sendToDesktopCallBack);

A common approach is make a helper method in your code, where you define the arguments to AdobeSendToDesktopApplication.sendImage().

Here’s a basic example of such a helper method:

private void sendToDesktop() throws IOException {
    /* 1) Get the image Bitmap */
    Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), mSelectedImageUri);

    /* 2) Specify the Adobe desktop app to send to */
    AdobeCreativeCloudApplication creativeCloudApplication = AdobeCreativeCloudApplication.AdobePhotoshopCreativeCloud;

    /* 3) Make a callback to handle success and error */
    final IAdobeSendToDesktopCallBack sendToDesktopCallBack = new IAdobeSendToDesktopCallBack() {
        public void onSuccess() {
            // Success case example
            Toast.makeText(MainActivity.this, "Opening in Photoshop on your desktop!", Toast.LENGTH_LONG).show();

        public void onError(AdobeSendToDesktopException e) {
            // Error case example
            Toast.makeText(MainActivity.this, "Failed!", Toast.LENGTH_LONG).show();


    /* 4) Send the image to the desktop! */
    AdobeSendToDesktopApplication.sendImage(bitmap, creativeCloudApplication, "My image title", sendToDesktopCallBack);

Developer guide and GitHub repo

To learn more, visit our developer guide for the Send To Desktop API. The guide will walk you through how to create a basic app that integrates the Send To Desktop API.

If you’d like to look at code for a sample app, go fork our Getting Started example repos for Android on GitHub.