Downloading using webview android? -


is there permission set in android manifest download file/document using webview?

i'm trying display button using webview, when button clicked, file should downloaded , saved in device.

this permission given:

`<uses-permission android:name="android.permission.write_external_storage"/>` 

this piece of code loads page contains button in it:

storelocator = (webview) findviewbyid(r.id.storelocator);     storelocator.setwebviewclient(new webviewclient());     storelocator.getsettings().setjavascriptenabled(true);     // storelocator.getsettings().setbuiltinzoomcontrols(true);     storelocator.setwebchromeclient(new webchromeclient() {         public void onprogresschanged(webview view, int progress) {             progressdialog.show();             progressdialog.setprogress(0);             activity.setprogress(progress * 1000);              progressdialog.incrementprogressby(progress);              if (progress == 100 && progressdialog.isshowing())                 progressdialog.dismiss();         }     });      storelocator.loadurl(getresources().getstring(r.string.home)); 

what want implement? try using standard button , on it's onclick have download file yourself.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -