Sunday 15 August 2010

Open Pdf from url in Android application -


I work with Android and I want to open PDF file:

  1. From
  2. From Internal Storage (Where is my file read by Android?)

    Can anyone help me?

    To open PDF in application usage

    P>

      Uri Path = Uri.framefile (file); Intent = intent (intent.ACTION_VIEW); Intent.setDataAndType (path, "application / pdf"); Intent.setFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP); StartActivity;   

    Where the file is the path to the PDF file.

No comments:

Post a Comment