fileType = ".ppt";

File pfile = new File(fileName);

 try {

Intent intent = new Intent(Intent.ACTION_VIEW);

 PackageManager packageManager = getPackageManager();

List intentList = packageManager.queryIntentActivities(intent,
PackageManager.MATCH_DEFAULT_ONLY);


intent.setDataAndType(path, "application/vnd.ms-powerpoint");

if(intentList.size()==0){

 }else{

startActivity(intent);

}



On Thu, Jan 24, 2013 at 11:38 AM, Ananda Krishna <
[email protected]> wrote:

> Hi,
> I want to play a ppt that contains some video in android.Can we do that.If
> yes can you tell me which android api to use and provide me with some
> sample code in order to do it.
> Any help in this regard would be appreciated.
> Regards,
> AnandaKrishna S
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards,
Narayanareddy.B
9032478372

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to