Where's ServiceManager class in Android?
Question
I saw a demo of simulateKeyInput,
some codes as following:
final IWindowManager windowManager=IWindowManager.Stub.
asInterface(ServiceManager.getService("window"));
But I can't find ServiceManager in package android.os,
maybe it's not in android SDK, does anyone know where it is?
Solution
Looks like a custom implementation of ServiceManager
within your project or your projects included .jar files.
Else there is a ServiceManager
in javax.jnlp
=> (Java Network Launching Protocol).. not sure if this is related to you & Android.
OTHER TIPS
android.os.ServiceManager in frameworks/base/core/java/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow