Actually its not a public API of DownloadManager. DownloadProvider documentation <https://android.googlesource.com/platform/packages/providers/DownloadProvider/+/android-6.0.1_r26/docs/index.html> ( and platform code <https://github.com/android/platform_frameworks_base/blob/master/core/java/android/provider/Downloads.java>) 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 <potential....@gmail.com > <javascript:>> 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 <http://sites.google.com/site/rezmobileapps/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.