This repository contains GroupDocs.Editor Cloud SDK for Android source code. This SDK allows you to work with GroupDocs.Editor Cloud REST APIs in your Android applications on Java language.
GroupDocs.Editor Cloud allows you to edit documents across wide range of supported document types:
- Microsoft Word documents - DOC, DOCX, DOCM, DOT, DOTM, DOTX, RTF, FlatOpc, WordML, TXT;
- Microsoft Excel spreadsheets - XLS, XLSX, XLSM, XLT, XLTX, XLTM, XLSB, SpreadsheetML, CSV, TSV;
- Microsoft PowerPoint presentations - PPT, PPTX, PPTM, POT, PPS etc.;
- Open Document formats - ODT, OTT, ODS, ODP, OTP;
- Markup - HTML, MHTML, XML.
Add Internet permission in the AndroidManifest.xml. Example:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<package name>">
<uses-permission android:name="android.permission.INTERNET" />
...
Add following repository and dependency to your android module's build.gradle after "apply plugin: 'com.android.application'" section:
repositories {
maven {
url "https://repository.groupdocs.cloud/repo/"
}
}
...
dependencies {
...
implementation 'com.groupdocs:groupdocs-editor-cloud:25.7'
}
Please follow the installation instruction and use the following Java code:
import com.groupdocs.cloud.editor.client.*;
import com.groupdocs.cloud.editor.model.*;
import com.groupdocs.cloud.editor.api.InfoApi;
public class ApiExample {
public static void getSupportedFormats() {
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
String appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
String appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
Configuration configuration = new Configuration(appSid, appKey);
InfoApi infoApi = new InfoApi(configuration);
try {
FormatsResult response = infoApi.getSupportedFileFormats();
for (Format format : response.getFormats()) {
System.out.println(format.getFileFormat());
}
} catch (ApiException e) {
System.err.println("Failed to get supported file formats");
e.printStackTrace();
}
}
}
All GroupDocs.Editor Cloud SDKs are licensed under MIT License.
+Website +Product Home +Documentation +Free Support Forum +Blog
Your feedback is very important to us. Please feel free to contact us using our Support Forums.