I want to access Android API classes outside an Android project. For example is it possible to get an object to the Context
of the device connected to a machine or the running emulator?
This will allow access to a system services like PowerManager
or ActivityManager
outside an Android device. If not via Context
object, is there any other way to access the system services for a device/avd outside Android?