How can I see or open a document in android application using url. The doc can be of any type like .doc,.docx,.pdf,.xls and etc..
Asked
Active
Viewed 964 times
0
-
public class MyPdfViewActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WebView mWebView=new WebView(MyPdfViewActivity.this); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.getSettings().setPluginsEnabled(true); mWebView.loadUrl("https://docs.google.com/gview?embedded=true&url="+LinkTo); setContentView(mWebView); } } – Athul Harikumar Jun 04 '13 at 05:29
-
you could refer to this http://stackoverflow.com/questions/7724009/open-a-pdf-from-url – Sabilv Jun 04 '13 at 05:31