1- ![ ] ( https://img.shields.io/badge/api-v2.0-lightgrey ) ![ GitHub release (latest by date) ] ( https://img.shields.io/github/v/release/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android ) [ ![ GitHub license ] ( https://img.shields.io/github/license/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android )] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android )
1+ # GroupDocs.Annotation Cloud SDK for Android
22
3- # Annotate Documents in Android Apps with REST API
3+ This repository contains GroupDocs.Annotation Cloud SDK for Android source code. This SDK allows you to work with GroupDocs.Annotation Cloud REST APIs in your Android applications on Java language.
44
5- GroupDocs.Annotation Cloud SDK for Android wraps GroupDocs.Annotation RESTful APIs so you may integrate Document Annotation features in your own Java apps with zero initial cost. The solution helps in applying annotations, sticky notes, watermark overlays, redactions, text replacements and markups to documents, presentations, emails, spreadsheets, PDF, images other file formats.
5+ ## Installation
66
7- ## Annotate Documents & Images in the Cloud
8-
9- - Import document annotations.
10- - Add or remove annotations.
11- - Export annotated document back to its original format.
12- - Preview document pages as images.
13- - Fetch document information, such as, page count & file size.
14-
15- Check out the [ Developer's Guide] ( https://docs.groupdocs.cloud/annotation/developer-guide/ ) to know more about GroupDocs.Annotation REST API.
16-
17- ## Microsoft Office Formats
18-
19- ** Microsoft Word:** DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTF\
20- ** Microsoft Excel:** XLS, XLSX\
21- ** Microsoft PowerPoint:** PPT, PPTX, PPSX\
22- ** Microsoft Visio:** VSSX, VSS, VSSM, VDX, VSD, VSDX, VSDM, VSTM, VSX, VTX\
23- ** Microsoft Outlook:** EML, EMLX, MSG
24-
25- ## Other Document Formats
26-
27- ** Portable:** PDF\
28- ** OpenDocument:** ODT, OTT, ODP, OTP\
29- ** Images:** BMP, PNG, JPG, JPEG, TIFF, TIF, GIF\
30- ** Web:** MHTML\
31- ** Others:** TXT
32-
33- ## Get Started with GroupDocs.Annotation Cloud SDK for Android
34-
35- First create an account at [ GroupDocs for Cloud] ( https://dashboard.groupdocs.cloud/ ) and get your application information. Next, follow the installation steps to get started.
36-
37- ### Installation
38-
39- Add Internet Permission in the AndroidManifest.xml. Example:
7+ Add Internet permission in the AndroidManifest.xml. Example:
408
419``` xml
4210<manifest xmlns : android =" http://schemas.android.com/apk/res/android" package =" <package name>" >
4311 <uses-permission android : name =" android.permission.INTERNET" />
4412 ...
4513```
4614
47- Add following repository and dependency to your android module's build.gradle after "apply plugin: 'com.android.application'" section:
15+ Add following repository and dependency to your android module's build.gradle
16+ after "apply plugin: 'com.android.application'" section:
4817
4918``` gradle
5019repositories {
@@ -60,49 +29,53 @@ dependencies {
6029}
6130```
6231
63- ## Add Image Annotation to DOCX in the Cloud
32+ ## Getting Started
33+
34+ Please follow the [ installation] ( #installation ) instruction and use the following Java code:
6435
6536``` java
66- // For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java-samples
67- // Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
68- String MyClientId = " " ;
69- String MyClientSecret = " " ;
70-
71- // Create instance of the API
72- Configuration configuration = new Configuration (MyClientId , MyClientSecret );
73- AnnotateApi apiInstance = new AnnotateApi (configuration);
74-
75- // Create annotation/s.
76- AnnotationInfo [] annotations = new AnnotationInfo [1 ];
77- annotations[0 ] = new AnnotationInfo ();
78-
79- Rectangle r = new Rectangle ();
80- r. setX(100.0 );
81- r. setY(100.0 );
82- r. setWidth(200.0 );
83- r. setHeight(100.0 );
84-
85- annotations[0 ]. setBox(r);
86- annotations[0 ]. setImagePath(" Annotationdocs\\ JohnSmith.png" );
87- annotations[0 ]. setPageNumber(0 );
88- annotations[0 ]. setType(TypeEnum . IMAGE );
89- annotations[0 ]. setText(" This is image annotation" );
90- annotations[0 ]. setCreatorName(" Anonym A." );
91-
92- // Create request object.
93- PostAnnotationsRequest request = new PostAnnotationsRequest (" Annotationdocs\\ one-page.docx" , Arrays . asList(annotations));
94-
95- // Executing api method.
96- apiInstance. postAnnotations(request);
97-
98- System . out. println(" AddImageAnnotation: image Annotation added." );
37+ import com.groupdocs.cloud.annotation.client.* ;
38+ import com.groupdocs.cloud.annotation.model.* ;
39+ import com.groupdocs.cloud.annotation.api.InfoApi ;
40+
41+
42+ public class ApiExample {
43+
44+ public static void getSupportedFormats () {
45+
46+ // TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
47+ String appSid = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ;
48+ String appKey = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ;
49+
50+ Configuration configuration = new Configuration (appSid, appKey);
51+
52+ InfoApi infoApi = new InfoApi (configuration);
53+
54+ try {
55+ FormatsResult response = infoApi. getSupportedFileFormats();
56+ for (Format format : response. getFormats()) {
57+ System . out. println(format. getFileFormat());
58+ }
59+ } catch (ApiException e) {
60+ System . err. println(" Failed to get supported file formats" );
61+ e. printStackTrace();
62+ }
63+ }
64+ }
9965```
10066
101- ## GroupDocs.Annotation Cloud SDKs in Popular Languages
67+ ## Licensing
68+
69+ All GroupDocs.Annotation Cloud SDKs are licensed under [ MIT License] ( LICENSE ) .
70+
71+ ## Resources
72+
73+ + [ ** Website** ] ( https://www.groupdocs.cloud )
74+ + [ ** Product Home** ] ( https://products.groupdocs.cloud/annotation )
75+ + [ ** Documentation** ] ( https://docs.groupdocs.cloud/annotation/ )
76+ + [ ** Free Support Forum** ] ( https://forum.groupdocs.cloud/c/annotation )
77+ + [ ** Blog** ] ( https://blog.groupdocs.cloud/category/annotation )
10278
103- | .NET | Java | PHP | Python | Ruby | Node.js | Android |
104- | ---| ---| ---| ---| ---| ---| ---|
105- | [ GitHub] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-dotnet ) | [ GitHub] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java ) | [ GitHub] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-php ) | [ GitHub] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-python ) | [ GitHub] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-ruby ) | [ GitHub] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-node ) | [ GitHub] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android ) |
106- | [ NuGet] ( https://www.nuget.org/packages/GroupDocs.Annotation-Cloud/ ) | [ Maven] ( https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-annotation-cloud ) | [ Composer] ( https://packagist.org/packages/groupdocscloud/groupdocs-annotation-cloud ) | [ PIP] ( https://pypi.org/project/groupdocs-annotation-cloud/ ) | [ GEM] ( https://rubygems.org/gems/groupdocs_annotation_cloud ) | [ NPM] ( https://www.npmjs.com/package/groupdocs-annotation-cloud ) | [ Maven] ( https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-annotation-cloud-android ) |
79+ ## Contact Us
10780
108- [ Home ] ( https://www.groupdocs.cloud/ ) | [ Product Page ] ( https://products.groupdocs.cloud/annotation ) | [ Documentation ] ( https://docs.groupdocs.cloud/annotation/ ) | [ Live Demo ] ( https://products.groupdocs.app/annotation/total ) | [ API Reference ] ( https://apireference.groupdocs.cloud/annotation/ ) | [ Code Samples ] ( https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java-samples ) | [ Blog ] ( https://blog.groupdocs.cloud/category/annotation/ ) | [ Free Support] ( https://forum.groupdocs.cloud/c/annotation ) | [ Free Trial ] ( https://dashboard.groupdocs.cloud )
81+ Your feedback is very important to us. Please feel free to contact us using our [ Support Forums ] ( https://forum.groupdocs.cloud/c/annotation ) .
0 commit comments