Android Question When downloading in the background sometimes it stops ( [B4X] RangeDownloader - resumable downloads )

alfaiz678

Active Member
Licensed User
I guess that the process is killed. Provide more information about your app.​
I'll make it clear.
When I click on the download button the download process takes place
Then make the app run in the background and go to another app
And when I open my application again, I find the download process continuing
The problem is that after the download process reaches a certain percentage and the application is running in the background, the download process stops
And it does not work again unless you close the application and run it again to complete the download process and so on

In this example, for example, this time when I got 44 MB, I stopped
 

Attachments

  • Project.zip
    15.4 KB · Views: 83
Upvote 0

alfaiz678

Active Member
Licensed User
Can you post the logs?
B4X:
Logger connected to:  LT LT P10I
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Total length: 536,870,912
bytes=0-307199
bytes=307200-614399
bytes=614400-921599
bytes=921600-1228799
bytes=1228800-1535999
bytes=1536000-1843199
bytes=1843200-2150399
** Activity (main) Pause event (activity is not paused). **
bytes=2150400-2457599
bytes=2457600-2764799
bytes=2764800-3071999
bytes=3072000-3379199
** Activity (main) Resume **
bytes=3379200-3686399
bytes=3686400-3993599
bytes=3993600-4300799
bytes=4300800-4607999
bytes=4608000-4915199
** Activity (main) Pause event (activity is not paused). **
bytes=4915200-5222399
bytes=5222400-5529599
bytes=5529600-5836799
bytes=5836800-6143999
bytes=6144000-6451199
bytes=6451200-6758399
bytes=6758400-7065599
bytes=7065600-7372799
bytes=7372800-7679999
bytes=7680000-7987199
** Activity (main) Resume **
bytes=7987200-8294399
bytes=8294400-8601599
bytes=8601600-8908799
bytes=8908800-9215999
bytes=9216000-9523199
bytes=9523200-9830399
bytes=9830400-10137599
bytes=10137600-10444799
** Activity (main) Pause event (activity is not paused). **
bytes=10444800-10751999
bytes=10752000-11059199
bytes=11059200-11366399
bytes=11366400-11673599
bytes=11673600-11980799
bytes=11980800-12287999
bytes=12288000-12595199
bytes=12595200-12902399
bytes=12902400-13209599
bytes=13209600-13516799
bytes=13516800-13823999
bytes=13824000-14131199
bytes=14131200-14438399
bytes=14438400-14745599
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
Ignoring event as service was destroyed: response_streamfinish
** Activity (main) Resume **

Ignoring event as service was destroyed: response_streamfinish
 
Upvote 0

alfaiz678

Active Member
Licensed User
First step is to upgrade to latest version of B4A.
1678697779103.png
 
Upvote 0
Top