Developing Applications¶
Opening PDFs on Android¶
To launch Acrobat mobile directly from your application, use the code below. The file must be accessible to Acrobat.
Filef=newFile(filepath);Intenti=newIntent();i.setAction(Intent.ACTION_VIEW);i.setData(Uri.fromFile(f));i.setComponent(newComponentName("com.adobe.reader","com.adobe.reader.AdobeReader"));try{startActivity(i);}catch(ActivityNotFoundExceptione){Log.i("App_Tag","Exception - "+e.getMessage());}