Erf Erf - 1 year ago 73
Android Question

Can it be possible to disable complete action using?

below code download file from url :

Intent intent=new Intent(Intent.ACTION_VIEW, Uri.parse(""));

but before download complete action using come and I don't want this. I want the download to start without asking complete action using like when we use http connection in AsyncTask way. Is this possible ?

Answer Source

That isn't how you download something. That's how you launch an activity that claims to read websites, and tell it to open that website. If you want to download something, either use an HTTP connection of your own or use DownloadManager.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download