HOME




© 2017 Adobe Systems, Inc. All rights reserved.

Updated Apr 06, 2018.

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.

File f = new File(filepath);
     Intent i = new Intent();
     i.setAction(Intent.ACTION_VIEW);
     i.setData(Uri.fromFile(f));
     i.setComponent(new ComponentName("com.adobe.reader", "com.adobe.reader.AdobeReader"));
     try
     {
       startActivity(i);
     }
     catch (ActivityNotFoundException e)
     {
       Log.i("App_Tag","Exception - "+e.getMessage());
     }