0

i want to make application that saw when the browser are trying to start a new download. how can i do this? before he will do it i want to take the url download link , save the link , and cancel the download.

i tried to search but i didnt find any thing.

MBMJ
  • 5,323
  • 8
  • 32
  • 51

1 Answers1

1

You cannot force this, and you shouldn't be able to. What you can do is make known your app can open the filetype. The user gets the standard "what program do you wish to use" dialog, and the user can select something as default.

But the downloading will always occur in the download dialog. The only way to control it is to do it within your app

cjds
  • 8,268
  • 10
  • 49
  • 84
  • ok, so if i want before every starting download to ask me" what program do you wish to use" how can i do it for every download – user1834345 Nov 19 '12 at 05:45
  • Sorry. I'll try to clear up my answer a little more. You can choose the program you want to open the file with not the program which you can download the file with. So basically the file will download then your program will take over. To do that http://stackoverflow.com/questions/9872450/make-your-app-a-default-app-to-open-a-certain-file check the link – cjds Nov 19 '12 at 11:01