Android Question HttpUtils2Service -> Receiver?

aeric

Expert
Licensed User
Longtime User
I am targeting Android version 14 with modified HttpUtil2Service to show download progress. Should I change the service to receiver? Is there any effect if I still use the old service for new version of Android?

 
Solution
Yes, it can crash in some edge cases.

It shouldn't be difficult to make the same changes in the updated HttpUtils2Service. It is almost identical.

aeric

Expert
Licensed User
Longtime User
Referring to this tutorial,

I only need to convert the HttpUtils2Service to receiver?

I don't need to/can't modify DownloadService?
I can't convert DownloadService to receiver because it contains this line:
B4X:
Service.StartForeground(1, n)
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Upvote 0
Top