Transloadit's official Android SDK
Repo transloadit/android-sdk, read from GitHub 56 min ago. transloadit has not joined Take My Repo.
transloadit/android-sdk is a public repo on GitHub by transloadit. Transloadit's official Android SDK. It declares the MIT license on GitHub. It is written mainly in Java, has 6 stars and last changed on 2026-10-02. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
An Android Integration for Transloadit's file uploading and encoding service
Transloadit is a service that helps you handle file uploads, resize, crop and watermark your images, make GIFs, transcode your videos, extract thumbnails, generate audio waveforms, and so much more. In short, Transloadit is the Swiss Army Knife for your files.
This is an Android SDK to make it easy to talk to the Transloadit REST API.
The JARs can be downloaded manually from Maven Central.
Gradle:
implementation 'com.transloadit.android.sdk:transloadit-android:0.2.0'
Maven:
<dependency>
<groupId>com.transloadit.android.sdk</groupId>
<artifactId>transloadit-android</artifactId>
<version>0.2.0</version>
</dependency>
ℹ️ Signature-based authentication was introduced in
com.transloadit.sdk:transloaditversion 2.1.0 (java-sdk#95). Android SDK 0.2 uses 2.2.4 for its updated SSE handling. When developing locally alongside the Java SDK, place both repositories next to each other (../java-sdk) and setANDROID_SDK_USE_LOCAL_JAVA_SDK=1to use the local java-sdk project via dependency substitution.
All interactions with the SDK begin with the com.transloadit.android.sdk.AndroidTransloadit class.
The SDK supports two authentication methods:
⚠️ Security Warning: Including your secret key in the Android app is a security risk as APK files can be decompiled to extract secrets. Use this method only for development or internal apps.
AndroidTransloadit transloadit = new AndroidTransloadit("YOUR_KEY", "YOUR_SECRET");
For production apps, we strongly recommend using external signature generation. This keeps your secret key on your backend server, preventing it from being extracted from the APK.
// Create a signature provider that fetches signatures from your backend
SignatureProvider signatureProvider = new SignatureProvider() {
@Override
public String generateSignature(String paramsJson) throws Exception {
// Make a request to your backend to sign the parameters
// This is just an example - implement according to your backend API
HttpURLConnection conn = (HttpURLConnection) new URL("https://your-backend.com/sign").openConnection();
conn.setRequestMethod("POST");
conn.setDoOutput(true);
conn.setRequestProperty("Content-Type", "application/json");
conn.getOutputStream().write(paramsJson.getBytes());
// Read the complete JSON response from your backend
StringBuilder responseJson = new StringBuilder();
try (BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {
char[] buffer = new char[1024];
int length;
while ((length = reader.read(buffer)) != -1) {
responseJson.append(buffer, 0, length);
}
}
return new JSONObject(responseJson.toString()).getString("signature"); // Returns "sha384:..."
}
};
// Initialize Transloadit with the signature provider
AndroidTransloadit transloadit = new AndroidTransloadit("YOUR_KEY", signatureProvider);
Your backend should implement an endpoint that:
Example backend implementation (Node.js), with req.body containing the unchanged UTF-8 request text supplied by your text/raw-body middleware:
const crypto = require('crypto')
app.post('/sign', authenticate, (req, res) => {
const paramsJson = req.body
const signature = crypto
.createHmac('sha384', process.env.TRANSLOADIT_SECRET)
.update(Buffer.from(paramsJson, 'utf-8'))
.digest('hex')
res.json({ signature: `sha384:${signature}` })
})
To create an assembly, you use the newAssembly method.
To use this functionality in its full glory, implement the AndroidAssemblyListener
interface.
public class MyAssemblyListener implements AndroidAssemblyListener {
@Override
public void onUploadFinished() {
System.out.println("upload finished!!! waiting for execution ...");
}
@Override
public void onUploadProgress(long uploadedBytes, long totalBytes) {
System.out.println("uploaded: " + uploadedBytes + " of: " + totalBytes);
}
@Override
public void onAssemblyFinished(AssemblyResponse response) {
System.out.println("Assembly finished with status: " + response.json().getString("ok"));
}
@Override
public void onUploadFailed(Exception exception) {
System.out.println("upload failed :(");
exception.printStackTrace();
}
@Override
public void onAssemblyStatusUpdateFailed(Exception exception) {
System.out.println("unable to fetch status update :(");
exception.printStackTrace();
}
}
And in your activity you can have something like this
public class MainActivity extends AppCompatActivity {
private ProgressBar progressBar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
progressBar = (ProgressBar) findViewById(R.id.progressBar);
AndroidAssemblyListener listener = new MyAssemblyListener();
AndroidTransloadit transloadit = new AndroidTransloadit("key", "secret");
AndroidAssembly assembly = transloadit.newAssembly(listener, this /* activity context */);
assembly.addFile(new File("path/to/file.jpg"), "file");
Map<String, Object> stepOptions = new HashMap<>();
stepOptions.put("width", 75);
stepOptions.put("height", 75);
stepOptions.put("resize_strategy", "pad");
assembly.addStep("resize", "/image/resize", stepOptions);
assembly.saveAsync();
}
}
Listener callbacks (onUploadProgress, onAssemblyFinished, etc.) are dispatched on the Android main thread by default so UI components can be updated safely. To opt out—for example, to process updates off the UI thread—call useDirectCallbacks() or install a custom executor:
AndroidAssembly assembly = transloadit.newAssembly(listener);
assembly.useDirectCallbacks(); // run callbacks on the calling thread
// or provide any Executor: assembly.setListenerCallbackExecutor(Executors.newSingleThreadExecutor());
AndroidAsyncAssembly with the new AndroidAssembly wrapper. It returns a Future from saveAsync() and reports lifecycle events through AndroidAssemblyListener.AssemblyProgressListener and friends were removed. Implement AndroidAssemblyListener instead, which exposes upload progress, SSE results, and completion/error hooks.assembly.useDirectCallbacks() or assembly.setListenerCallbackExecutor(...).new AndroidTransloadit(key, signatureProvider). Passing the secret into your APK still works but is no longer recommended for production.chameleon.jpg fixture and require result: true on resize steps so SSE result payloads arrive consistently.com.transloadit.sdk:transloadit:2.2.4 or newer. Ensure any overrides or local builds are upgraded in lockstep.transloadit_android_sdk_urls. If you upgrade from 0.x and rely on resuming uploads saved under the typo’d tansloadit_android_sdk_urls, plan a manual migration.SharedPreferences legacy = context.getSharedPreferences("tansloadit_android_sdk_urls", Context.MODE_PRIVATE);
SharedPreferences modern = context.getSharedPreferences(AndroidAssembly.DEFAULT_PREFERENCE_NAME, Context.MODE_PRIVATE);
if (!legacy.getAll().isEmpty()) {
SharedPreferences.Editor editor = modern.edit();
for (Map.Entry<String, ?> entry : legacy.getAll().entrySet()) {
editor.putString(entry.getKey(), String.valueOf(entry.getValue()));
}
editor.apply();
legacy.edit().clear().apply(); // optional: clean up
}
Run this once at app start to preserve any paused uploads created by pre-1.0 builds.pauseUploadsSafely() / resumeUploadsSafely() on AndroidAssembly to control active tus uploads without micromanaging exceptions. Errors are routed to onAssemblyStatusUpdateFailed so your listener can surface them to the UI.assembly.preferenceName("my_store") when running multiple concurrent assemblies so tus resume information can be partitioned per job.OneTimeWorkRequest with AndroidAssemblyWorkConfig and enqueue it through WorkManager:AndroidAssemblyWorkConfig config = AndroidAssemblyWorkConfig
.newBuilder("TRANSLOADIT_KEY")
.signatureProvider("https://your-backend.com/sign")
.addSignatureProviderHeader("Authorization", "Bearer " + sessionToken)
.paramsJson(paramsJsonString)
.preferenceName("my_transloadit_store")
.addFile(new File(context.getCacheDir(), "photo.jpg"), "image")
.waitForCompletion(true)
.build();
WorkManager.getInstance(context).enqueue(config.toWorkRequest());
The WorkManager signing endpoint must return a JSON object with a signature field, as in the backend example above. The session token must be valid when the worker requests the signature.
AndroidAssemblyUploadWorker waits for uploads (and, optionally, SSE completion) on a background thread so your app can survive process death or move long-running jobs out of the foreground.
For fully working examples take a look at examples/.
Notably, examples/src/main/kotlin/com/transloadit/examples/work/WorkManagerSample.kt demonstrates how to enqueue background uploads using WorkManager and the new AndroidAssemblyWorkConfig, both with embedded secrets and with an external signature-provider endpoint. The accompanying unit test (examples/src/test/kotlin/.../WorkManagerSampleTest.kt) can be exercised locally via:
./scripts/test-in-docker.sh :examples:testDebugUnitTest --rerun-tasks
Provide the same environment variables (ANDROID_SDK_E2E, TRANSLOADIT_KEY, TRANSLOADIT_SECRET) as the primary E2E flow to run the sample end-to-end against Transloadit.
Run the unit test suite inside Docker to avoid installing the Android toolchain locally:
./scripts/test-in-docker.sh
The script builds a lightweight image with the necessary Android command-line tools, caches Gradle downloads inside .android-docker/, and runs ./gradlew test with the SDK preconfigured. If you use Colima, the script will automatically fall back to ~/.colima/default/docker.sock when the default Docker socket is unavailable.
transloadit-android/src/test/java/com/transloadit/android/sdk/SignatureProviderE2ETest drives a real upload against Transloadit to exercise the external signature-provider workflow that the SDK ships for production apps (plus Tus pause/resume, SSE progress/results, etc.). The test is opt-in and executes when ANDROID_SDK_E2E=true and both TRANSLOADIT_KEY and TRANSLOADIT_SECRET are present. To run it locally:
.env file in the repository root (or export the variables directly) containing:ANDROID_SDK_E2E=1
TRANSLOADIT_KEY=your-key
TRANSLOADIT_SECRET=your-secret
./scripts/test-in-docker.sh :transloadit-android:testDebugUnitTest --rerun-tasks
The script automatically passes variables from .env into the container.The GitHub Actions workflow (.github/workflows/CI.yml) sets the same environment variables from repository secrets, so pull requests and the main branch continuously run this end-to-end verification alongside the Java SDK’s signature-parity tests.
See Javadoc for full API documentation.
transloadit/android-sdk is a public repo on GitHub by transloadit. Transloadit's official Android SDK.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-10-02. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run android-sdk. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-10-02. It has 6 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.