{"id":24880728,"url":"https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-android","last_synced_at":"2025-10-15T23:31:08.678Z","repository":{"id":39956006,"uuid":"198433577","full_name":"groupdocs-viewer-cloud/groupdocs-viewer-cloud-android","owner":"groupdocs-viewer-cloud","description":"Android module to communicate with GroupDocs.Viewer REST API. View or render Word, Excel, PowerPoint, CAD, Visio, PDF, OpenDocument, email \u0026 image formats.","archived":false,"fork":false,"pushed_at":"2025-07-23T06:57:51.000Z","size":1209,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T08:18:05.131Z","etag":null,"topics":["android","cad","docx","excel","pdf","powerpoint","sdk","view-engine","viewer-cloud","visio","word"],"latest_commit_sha":null,"homepage":"https://products.groupdocs.cloud/viewer/android","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/groupdocs-viewer-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-07-23T13:12:55.000Z","updated_at":"2025-07-23T06:09:42.000Z","dependencies_parsed_at":"2023-09-29T06:51:14.743Z","dependency_job_id":"c06a2814-87ab-44de-b292-8f19373e4fa2","html_url":"https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-android","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/groupdocs-viewer-cloud/groupdocs-viewer-cloud-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/groupdocs-viewer-cloud","download_url":"https://codeload.github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279128452,"owners_count":26109759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cad","docx","excel","pdf","powerpoint","sdk","view-engine","viewer-cloud","visio","word"],"created_at":"2025-02-01T11:19:25.373Z","updated_at":"2025-10-15T23:31:08.672Z","avatar_url":"https://github.com/groupdocs-viewer-cloud.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GroupDocs.Viewer Cloud SDK for Android\n\nThis repository contains GroupDocs.Viewer Cloud SDK for Android source code. This SDK siplify using GroupDocs.Viewer Cloud REST APIs in your Android applications on Java language. This allows rendering any type of documents - Word, Excel, Presentation, Cad, Email, etc, to HTML, image or PDF format with the flexibility to render the whole document or custom range of pages.\n\n## Installation\n\nAdd Internet permission in the AndroidManifest.xml. Example:\n\n```xml\n\u003cmanifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"\u003cpackage name\u003e\"\u003e\n    \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n    ...\n```\n\nAdd following repository and dependency to your android module's build.gradle\nafter \"apply plugin: 'com.android.application'\" section:\n\n```gradle\nrepositories {\n    maven {\n        url \"https://repository.groupdocs.cloud/repo/\"\n    }\n}\n\n...\ndependencies {\n    ...\n    implementation 'com.groupdocs:groupdocs-viewer-cloud-android:25.7'\n}\n```\n\n## Getting Started\n\n* Please follow the [installation](#installation) instruction\n* Get your AppSID and AppKey at [Dashboard](https://dashboard.groupdocs.cloud) and use them in your code\n* Build and execute\n* Explore more samples at [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java-samples)\n\nBelow is an example demonstrating how to preview document using GroupDocs.Viewer Cloud SDK for Android:\n\n```java\nimport com.groupdocs.cloud.viewer.api.ViewApi;\nimport com.groupdocs.cloud.viewer.client.Configuration;\nimport com.groupdocs.cloud.viewer.model.requests.ConvertAndDownloadRequest;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.FileOutputStream;\n\npublic class Example {\n\n    public static void main(String[] args) {\n        // For complete examples and data files, please go to https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java-samples\n        String myClientId = \"\"; // Get Client Id from https://dashboard.groupdocs.cloud\n        String myClientSecret = \"\"; // Get Client Secret from https://dashboard.groupdocs.cloud\n\n        Configuration configuration = new Configuration(myClientId, myClientSecret);\n        ViewApi viewApi = new ViewApi(configuration);\n\n        String format = \"jpg\";\n        try (InputStream fileStream = new FileInputStream(\"myfile.docx\")) {\n            ConvertAndDownloadRequest request = new ConvertAndDownloadRequest(format, fileStream);\n            InputStream result = viewApi.convertAndDownload(request);\n\n            // Save the resulting stream (a *.jpg file) for your purpose\n            try (OutputStream outStream = new FileOutputStream(\"output.jpg\")) {\n                byte[] buffer = new byte[8192];\n                int bytesRead;\n                while ((bytesRead = result.read(buffer)) != -1) {\n                    outStream.write(buffer, 0, bytesRead);\n                }\n            }\n            result.close();\n        } catch (Exception e) {\n            System.err.println(\"Failed to convert and download the document\");\n            e.printStackTrace();\n        }\n    }\n}\n```\n\nAnd here is an example demonstrating how to upload the document, render it, and download the result using GroupDocs.Viewer Cloud SDK for Android:\n\n```java\nimport com.groupdocs.cloud.viewer.api.ViewApi;\nimport com.groupdocs.cloud.viewer.api.FileApi;\nimport com.groupdocs.cloud.viewer.client.Configuration;\nimport com.groupdocs.cloud.viewer.model.*;\nimport com.groupdocs.cloud.viewer.model.requests.*;\n\nimport java.io.FileInputStream;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.FileOutputStream;\n\npublic class Example {\n\n    public static void main(String[] args) {\n        // For complete examples and data files, please go to https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java-samples\n        String myClientId = \"\"; // Get Client Id from https://dashboard.groupdocs.cloud\n        String myClientSecret = \"\"; // Get Client Secret from https://dashboard.groupdocs.cloud\n\n        Configuration configuration = new Configuration(myClientId, myClientSecret);\n\n        try {\n            // Upload a file to cloud storage\n            FileApi fileApi = new FileApi(configuration);\n            try (InputStream uploadStream = new FileInputStream(\"myfile.docx\")) {\n                UploadFileRequest uploadRequest = new UploadFileRequest(\"myfile.docx\", uploadStream, null);\n                fileApi.uploadFile(uploadRequest);\n            }\n\n            // Render it to HTML\n            ViewApi viewApi = new ViewApi(configuration);\n            FileInfo fileInfo = new FileInfo();\n            fileInfo.setFilePath(\"myfile.docx\");\n\n            ViewOptions viewOptions = new ViewOptions();\n            viewOptions.setFileInfo(fileInfo);\n            viewOptions.setViewFormat(ViewOptions.ViewFormatEnum.HTML);\n            viewOptions.setOutputPath(\"myfile.html\");\n\n            CreateViewRequest viewRequest = new CreateViewRequest(viewOptions);\n            viewApi.createView(viewRequest);\n\n            // Download the result\n            DownloadFileRequest downloadRequest = new DownloadFileRequest(\"myfile.html\", null, null);\n            InputStream result = fileApi.downloadFile(downloadRequest);\n\n            // Use resulting stream (a *.html file in this example) for your purpose\n            try (OutputStream outStream = new FileOutputStream(\"output.html\")) {\n                byte[] buffer = new byte[8192];\n                int bytesRead;\n                while ((bytesRead = result.read(buffer)) != -1) {\n                    outStream.write(buffer, 0, bytesRead);\n                }\n            }\n            result.close();\n\n        } catch (Exception e) {\n            System.err.println(\"Failed to upload, render, or download the document\");\n            e.printStackTrace();\n        }\n    }\n}\n```\n\n## Licensing\n\nAll GroupDocs.Viewer Cloud SDKs are licensed under [MIT License](LICENSE).\n\n## Resources\n\n+ [**Website**](https://www.groupdocs.cloud)\n+ [**Product Home**](https://products.groupdocs.cloud/viewer)\n+ [**Documentation**](https://docs.groupdocs.cloud/viewer)\n+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/viewer)\n+ [**Blog**](https://blog.groupdocs.cloud/category/viewer)\n\n## Contact Us\n\nYour feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/viewer).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgroupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupdocs-viewer-cloud%2Fgroupdocs-viewer-cloud-android/lists"}