Skip to end of metadata
Go to start of metadata

 

 

Contents Summary
  

Installation

Previously, Aspose.Slides for Android via Java was distributed as a single ZIP file which contained the JAR file, demos and documentation of Aspose.Slides for Android via Java.

  1. If you want to use any version before Aspose.Words for Android via Java 18.9, you just need to unzip any version of Aspose.Slides.Android.zip into a directory of your choice.
  2. Include the extracted Jar file in your application using the Build Path configuration for its application.

Adding reference to Aspose.Slides for Android via Java Jar

  1. Download the newest version of Aspose.Slides for Android via Java
  2. Copy aspose-slides-18.9-android.via.java.jar into your project’s libs/folder


Install Aspose.Slides for Android via Java from Maven Repository 

  1. Add maven repository into your build.gradle 
  2. Add 'Aspose.Slides for Android via Java' JAR as a dependency

Your First Application Using Aspose.Slides for Android via Java

This article gives you an idea of getting started with Aspose.Slides for Android via Java. It will demonstrate how to setup a new Android project from scratch, add a reference to the Aspose.Slides JAR and create a new PowerPoint presentation which is saved to disk in PPTX format. This example uses Android Studio for development and the application is run on the Android Emulator. To get started with Aspose.Slides for Android via Java, please follow this step-by-step tutorial to create an app which uses Aspose.Slides for Android via Java:

  1. Download and the Android Studio and install to any location.
  2. Run the Android Studio.
  3. Create a new Android Application Project.









  4. Copy aspose-slides-18.9-android.via.java.jar into your project’s libs/folder



  5. Select Project Section (from file menu and click on Dependencies tab.
    1. Click on "+" button, select file dependency option.
    2. Select Aspose.Slides library from libs folder and click on OK.


  6. Sync the project with gradle files if needed



  7. In order to access the SDcard special permissions must be added. Click on the AndroidManifest.xml file and choose XML view. Add the following line to the file <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

     



  8. Navigate back to the code section of the app and add the following imports: 

    And then insert the following code in the body of the onCreate method to create a new Presentation from scratch using Aspose.Slides and save it to the SDCard in PPTX format.

    The full code should look like this:

     

  9. Now run the application again. This time the Aspose.Slides code will run in the background and generate a document which is saved to the SDcard.


  10. To view the created document navigate to the Tools menu then choose Android and choose Android Device Monitor


Versioning

Since 2018 the versioning of Aspose.Slides for Android via Java complies with Aspose.Slides for Java. 

 

Labels
  • No labels