title: How to get a service from ServiceManager in Android?
body: <p>I have a doubt concern the services registered by the ServiceManager and not register by the SystemServiceRegistry.</p>
  
  <p>In the comments of <a href="https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/SystemServiceRegistry.java" rel="nofollow noreferrer">SystemServiceRegistry </a></p>
  
  <pre><code>/**
   * Manages all of the system services that can be returned by {@link Context#getSystemService}.
   * Used by {@link ContextImpl}.
   */
  </code></pre>
  
  <p>That means the services registered by System can be get his reference from the Context.</p>
  
  <p>Concern the <a href="https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/ServiceManager.java" rel="nofollow noreferrer">ServiceManager</a>, how can I access a service added by the ServiceManager in an Application that was not register by the SystemServiceRegistry ?</p>