open pdf in popup android -


iam developing android app, need open pdf file in popup window. code is:

 imageview brobutton=(imageview)layout.findviewbyid(r.id.imageview3);                                         brobutton.setonclicklistener(new onclicklistener() {                                                      }                                                 }); 

already have developed app open pdf in emulator code:

 final string googledocsurl = "http://docs.google.com/viewer?url=";                                                  webview mwebview=new webview(subproducts.this);                                                  mwebview.getsettings().setjavascriptenabled(true);                                                 websettings websettings = mwebview.getsettings();                                                 websettings.setpluginstate(pluginstate.on);                                                  mwebview.setwebviewclient(new webviewclient() {                                                     public boolean shouldoverrideurlloading(webview view, string url){                                                          view.loadurl(image_urlpdf);                                                         return false; // not handled default action                                                    }                                                 });                                                   mwebview.loadurl((googledocsurl + image_urlpdf)); 

under onclick of button need open pdf.any 1 suggest me idea.thanks in advance.

you need modify app open pdf. either pass flag using intents alert app need open popup showing pdf.

check thread how show activity dialog android activity dialog


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -