搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Is there a way for FireFox on Android to Observe or Monitor File Download Completion?

  • 2 回覆
  • 2 有這個問題
  • 12 次檢視
  • 最近回覆由 tameremil

more options

I would like to create a plugin/extension on FireFox Mobile for Android, that will execute a command once a File download is completed. Ideally I would like to call some service on Android and notify it with any download completion. The call to the service requires the following parameters: - Source domain, like google.com - File name - Location saved on local device

In Desktop firefox I think hooking into file download action can be done via nslDownloadManager. Is there an equivalent for firefox mobile?

I would like to create a plugin/extension on FireFox Mobile for Android, that will execute a command once a File download is completed. Ideally I would like to call some service on Android and notify it with any download completion. The call to the service requires the following parameters: - Source domain, like google.com - File name - Location saved on local device In Desktop firefox I think hooking into file download action can be done via nslDownloadManager. Is there an equivalent for firefox mobile?

所有回覆 (2)

more options

Hi,

So, I'm not sure if I have the answer to your question, but the downloads manager has changed in the new Firefox 14 (which is currently in Nightly).

So, you might download Firefox for Android from http://nightly.mozilla.org to see if the downloader does what you're thinking to create in your add-on.

I think you would want to create your add-on for the new native version anyways, since it is soon to be released and basically changes everything. We are hoping it will go to beta in the coming weeks, so nightly will change quite a bit each day between now and then and is still unstable.

Thanks, Michelle

more options

Thank you for the reply.

This might sound like a really silly questions, sorry in advance :) When you said downloads manager, where are the API documentation for the features that are in Nightly v14? Or did you mean that the download manager is a new UI that will be added to FF?

As I am sure you gathered, what I need to do requires programing, so I was looking for APIs to write code against and play. I could not see API documentation for nightly versions :S

Thank you