Get current Activity reference from within Service
So say there's an app running (any app). I'd like to be able to get it's Activity from within a Service that will be triggered to run from a android.intent.action.SEARC开发者_运维知识库H_LONG_PRESS.
Is this possible?
That is not possible. Other people's apps are not running in your process -- ergo, you cannot have access to any of that app's objects.
加载中,请稍侯......
精彩评论