Re: [android-developers] Download Manager: Pause & Resume

2016-06-10 Thread himanshu
Ok thank you.  For now, because of lack of pause/resume, I'll have to stick 
with stop/recreate. 

On Monday, June 6, 2016 at 11:31:31 AM UTC+5:30, TreKing wrote:
>
>
> On Fri, Jun 3, 2016 at 4:28 AM, himanshu  > wrote:
>
>> Actually its not a public API of DownloadManager. 
>
>
> Then it seems you're relying on unofficial behavior, which would indicate 
> this is not necessarily a bug, since it's likely not intended to be used 
> this way.
>
> Sorry, don't really have an answer for you on how to achieve what you're 
> looking for, but it doesn't appear to be a bug, per se.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/9a8346d0-db26-4777-b110-cb5ddb544176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Download Manager: Pause & Resume

2016-06-05 Thread TreKing
On Fri, Jun 3, 2016 at 4:28 AM, himanshu 
wrote:

> Actually its not a public API of DownloadManager.


Then it seems you're relying on unofficial behavior, which would indicate
this is not necessarily a bug, since it's likely not intended to be used
this way.

Sorry, don't really have an answer for you on how to achieve what you're
looking for, but it doesn't appear to be a bug, per se.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgjtDtkHq0r2xaqXVULmvg0tSJSH75q8_D3DXz75x%2BzFXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Download Manager: Pause & Resume

2016-06-03 Thread himanshu
Actually its not a public API of DownloadManager. 

DownloadProvider documentation 

 ( 
and platform code  
)
 
clearly indicates that COLUMN_CONTROL is for pausing and resuming from 
Apps. 

And on setting COLUMN_CONTROL to CONTROL_PAUSED (1)  leads to pausing ( 
initially that column is null when I read it before setting it to 
CONTROL_PAUSED) .
And after that, I see that after sometime COLUMN_STATUS is set to 
STATUS_PAUSED_BY_APP

Also COLUMN_CURRENT_BYTES  stops updating, so that indicates that pausing 
works. 

Next when I want to resume, I set COLUMN_CONTROL to CONTROL_RUN. But it 
stays in that state, without getting resumed. 


On Thursday, June 2, 2016 at 11:22:25 PM UTC+5:30, TreKing wrote:
>
>
> On Wed, Jun 1, 2016 at 2:29 PM, himanshu  > wrote:
>
>> I'm able to Pause a download by setting COLUMN_CONTROL to CONTROL_PAUSED 
>
>
> Where in the API does it indicate that this is how you pause a download?
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6039645c-d211-4b18-9d22-4eb31a0a8a64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Download Manager: Pause & Resume

2016-06-02 Thread TreKing
On Wed, Jun 1, 2016 at 2:29 PM, himanshu 
wrote:

> I'm able to Pause a download by setting COLUMN_CONTROL to CONTROL_PAUSED


Where in the API does it indicate that this is how you pause a download?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScghTDtzN0ZtcO7jv3NdhtpZjFofFRkusLKCfNMpmauyuSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Download Manager: Pause & Resume

2016-06-01 Thread himanshu
I'm able to Pause a download by setting COLUMN_CONTROL to CONTROL_PAUSED 
But when I resume a download by setting COLUMN_CONTROL to CONTROL_RUN, *it 
doesn't work*. 
The download stays in paused state. 

Is that a bug ?


More info: 

CONTENT_URI for update: content://downloads/my_download/ 




-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5a412385-a641-46fb-ad08-4b65eef16a38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.