Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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