Microsoft PowerPoint is a slide show presentation program currently developed by Microsoft, for use on both Microsoft and Apple Macintosh operating systems. PowerPoint, initially named "Presenter", was created by Forethought Inc.. Microsoft's version of PowerPoint was officially launched on May 22, 1990, as a part of the Microsoft Office suite. PowerPoint is useful for helping develop the slide-based presentation format and is currently one of the most commonly used slide-based presentation programs available. Microsoft has also released the PowerPoint mobile application for use on Apple and Android mobile operating systems.
PowerPoint presentations consist of a number of individual pages or "slides". The "slide" analogy is a reference to the slide projector. Slides may contain text, graphics, sound, movies, and other objects, which may be arranged freely.
PowerPoint presentations consist of a number of individual pages or "slides". The "slide" analogy is a reference to the slide projector. Slides may contain text, graphics, sound, movies, and other objects, which may be arranged freely.
For Android mobile platform OS we have itsrts-pptviewer.jar library which acts as PowerPoint Viewer in the Android application,
Refer the below link for complete sample code:-
Download Sample Code
Have a look on few code snippets,
activity_main.xml
1 2 3 4 5 6 7 8 9 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <com.itsrts.pptviewer.PPTViewer android:id="@+id/pptviewer" android:layout_width="match_parent" android:layout_height="match_parent" /> </RelativeLayout> |
MainActivity.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | package com.example.harshalbenake.pptviewer; import android.app.Activity; import android.os.Bundle; import android.os.Environment; import com.itsrts.pptviewer.PPTViewer; public class MainActivity extends Activity { PPTViewer pptViewer; public static final String sdCardPath = Environment.getExternalStorageDirectory() + "/"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); pptViewer = (PPTViewer) findViewById(R.id.pptviewer); String path = sdCardPath +"Bestowal" + "/" + "PPT1.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); } } |
No comments:
Post a Comment