Is there a native android way to get a reference to the currently running Activity from a service?
I have a service running on the background, and I would like to up
Just recently found out about this. With apis as:
targetSdkVersion 26
ActivityManager.getCurrentActivity(context)
Hope this is of any use.