Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question