how to view pdf inside the app from url
<p>Guys i want to view the pdf file from url i have done some coding stuff but getting error .Please help me out.If there is another solution please give an suggestion</p>

<pre><code>          @Override
        protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_main);

    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  Button  button = (Button) findViewById( R.id.mybutt );

    String pdf = "http://www.pc-hardware.hu/PDF/konfig.pdf";
    String doc="&lt;iframe src='http://docs.google.com/gview?embedded=true&amp;url=http://www.pc-hardware.hu/PDF/konfig.pdf;'&gt;&lt;/iframe&gt;";
WebView  wv = (WebView)findViewById(R.id.webView);
wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setPluginsEnabled(true);
wv.getSettings().setAllowFileAccess(true);
wv.loadUrl(doc);
}
</code></pre>

<p>Layout</p>

<pre><code>        &lt;WebView
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/webView"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;

        &lt;LinearLayout
         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"
            android:gravity="bottom"
            android:orientation="vertical" &gt;
</code></pre>