NOTE : I have discontinued support for this project. It is provided as it basis. A ppt viewer library, which can be easily used in any existing android application.
Hello folks, I was working on a project for wireless presentation and i need to embedd a PPT viewer in it. I searched for some existing library but found none of them to be developer friendly. So here is a custom library made by me for seamless integration of a PPT viewer in any existing application.
All you need to do is:
-
Download the library of mine (of course from GitHub).
-
Somehow add it to your existing app, that can be done in any ways.
a. Copy and Paste it in a folder named as "libs" in your project root directory.
b. Add it to your build path by right clicking on your project and "Configure build ......." -
You must be having an Activity and an XML file for it.
-
Now open the layout XML file and add the following line of code in it.
< com.itsrts.pptviewer.PPTViewer
android:id="@+id/pptviewer"
android:width="match_parent"
android:height="match_parent"
/> -
Goto the main activity file which will be inflating the above XML and after the "setContentView", add:
PPTViewer pptViewer = (PPTViewer) findViewById(R.id.pptviewer);
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(activity, path);
// path is a String having the location of the ppt file to be loaded.
The library is fully customizable with the option to change the viewer the way you want.