Giter Site home page Giter Site logo

groupdocs-conversion-cloud / groupdocs-conversion-cloud-android Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 858 KB

Android module for communicating with the GroupDocs.Conversion Cloud REST API. Convert Documents, Images, Spreadsheets, PDF, Drawings, Emails and many other files in the Cloud.

Home Page: https://products.groupdocs.cloud/conversion/android

License: MIT License

Java 100.00%
conversion-cloud-api conversion-cloud-sdk android groupdocs sdk

groupdocs-conversion-cloud-android's Introduction

GroupDocs.Conversion Cloud SDK for Android

This repository contains GroupDocs.Conversion Cloud SDK for Android source code. This SDK allows you to work with GroupDocs.Conversion Cloud REST APIs in your Android applications on Java language.

Installation

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-conversion-cloud:24.4'
}

Getting Started

Please follow the installation instruction and use the following Java code:

import com.groupdocs.cloud.conversion.client.*;
import com.groupdocs.cloud.conversion.model.*;
import com.groupdocs.cloud.conversion.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();
        }

    }
}

Licensing

All GroupDocs.Conversion Cloud SDKs are licensed under MIT License.

Resources

+Website +Product Home +Documentation +Free Support Forum +Blog

Contact Us

Your feedback is very important to us. Please feel free to contact us using our Support Forums.

groupdocs-conversion-cloud-android's People

Contributors

babar-raza avatar product-team avatar rizwanniazigroupdocs avatar saudaspose avatar

Watchers

 avatar  avatar

groupdocs-conversion-cloud-android's Issues

NetworkOnMainThreadException

code is

    val MyClientId = "_provided_"
    val MyClientSecret = "_provided_"

    val configuration = Configuration(MyClientId, MyClientSecret)
    val apiInstance = ConvertApi(configuration)

    val settings = ConvertSettings()
    settings.filePath = getFilePath(uri)
    settings.format = "pdf"
    settings.outputPath = out

    val result = apiInstance.convertDocument(ConvertDocumentRequest(settings))

error occur
Caused by: android.os.NetworkOnMainThreadException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.