views:

36

answers:

1

Hey,

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.SEARCH_LONG_PRESS.

Is this possible?

+1  A: 

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.

CommonsWare
Is there anyway to activate a screen rotation from within a `Service` without having the `Activity`?
mlevit
@mlevit: Ask the user to turn the device. :-) Beyond that, I am not aware of any options.
CommonsWare