D
D
Drottarutarnum2019-09-24 15:36:13
Java
Drottarutarnum, 2019-09-24 15:36:13

How to make a global class if it is attached to an activity?

I have a BLE service that receives packages (for example, one of these packages is the charge level that is displayed on any activity)
When creating a service, it requires the context of some activity
How to deal with this? Creating an empty activity so that it gives life to the service does not sound very good

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question