Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Highlighted
Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone
Accepted Solution

WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

Hi !

 

I've noticed that after upgrading to OS 2.0.1 WebDownloadProgressEvent is not beeing dispatched (previuosly it worked fine).

 

I have something like this:

                var wk:QNXStageWebView;

                .....

                wk.addEventListener(WebDownloadRequestEvent.DOWNLOAD_REQUEST, downloadRequest);
                wk.addEventListener(WebDownloadStartedEvent.DOWNLOAD_STARTED, downloadStarted);
                wk.addEventListener(WebDownloadProgressEvent.DOWNLOAD_PROGRESS, downloadProgress);
                wk.addEventListener(WebDownloadFinishedEvent.DOWNLOAD_FINISHED, downloadFinished);

 

and in downloadRequest I have:

 

                    e.action=WebDownloadRequestEvent.ACTION_SAVE;
                    wk.downloadUpdate(e.downloadId, WebDownloadRequestEvent.ACTION_SAVE, archivo);

 

With this, I should start receiving progress events when it's downloading files. File is really beeing downloaded and saved to location I set, but no progress event is dispatched and I can not show progress.

 

Is there any workarround?

 

Regards,

Jesus

 

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

No help on this?

Nobody having this issue?

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

Hi,

 

What IDE and what version of the SDK are you using? What kind of file are you downloading out of curiosity? I'll try and write a sample to test. 

 

Thanks,
Dustin 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

Thanks for your answer.

I'm using Flex Buildrr 4.6 with latest sdk 2.

My app tries to download epub files, from http://www.gutenberg.org/ for example.

 

It worked fine until last OS 2.0.1 update, it  does not work neither on devie nor on simulator now.

 

Thanks,

Jesus

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

Ok thanks. I'll look into it Smiley Happy

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

Try adding:

 

e.target.downloadUpdate(1,"actionSave","URL");

 To your downloadRequest function

 

If that doesn't work do you mind providing me with the full event functions you're using?

 

Thanks,

Dustin 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

Thanks dmalik!

 

It works changing the event name Smiley Happy

Thanks again!!!


My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: WebDownloadProgressEvent not beeing dispatched after OS 2.0.1 upgrade

Awesome! 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/