title: Load PPT File using Third Party Android Library
body: <p><a href="https://i.stack.imgur.com/O3658.jpg" rel="nofollow noreferrer">ScreenShot of the app after lauching</a>I have imported this library <a href="https://github.com/itsrts/pptviewer-android" rel="nofollow noreferrer">https://github.com/itsrts/pptviewer-android</a> in my app by adding the .jar file in the libs folder.I want to load ppt files into my app.Unfortunately, the app keeps showing the loading spinner after launching.</p>
  
  <p>MainActivity.java</p>
  
  <pre><code>package com.example.myapplication;
  
  import android.app.Activity;
  import android.os.Environment;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import com.itsrts.pptviewer.PPTViewer;
  
  
  public class MainActivity extends Activity {
  
  PPTViewer pptViewer;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      pptViewer = (PPTViewer) findViewById(R.id.pptviewer);
      String path = Environment.getExternalStorageDirectory().getPath()
              + "/Download/check.ppt";
      pptViewer.setNext_img(R.drawable.next).setPrev_img(R.drawable.prev)
              .setSettings_img(R.drawable.settings)
              .setZoomin_img(R.drawable.zoomin)
              .setZoomout_img(R.drawable.zoomout);
      pptViewer.loadPPT(this, path);
  
  }
  }
  </code></pre>
  
  <p>activity_main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context="com.example.myapplication.MainActivity"&gt;
  
  &lt;com.itsrts.pptviewer.PPTViewer
      android:id="@+id/pptviewer"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
   &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>