Thursday 11 March 2021

Is to good to send requests to Service by calling its public functions in Android?

I have a Service which its responsibility is to download files from Internet. My Service can download multiple files at the same time.I should be able to send requests to my Service from different classes, e.g., from Activities, Fragments or NotificationManager.

What is the best way to send download requests to the Service?. should I send the data via Intent or it is better to access to the reference of the Service and call one of it's public functions? Which one is better? Thanks.



from Is to good to send requests to Service by calling its public functions in Android?

No comments:

Post a Comment