title: how to access com.android.internal.telephony.CallManager?
body: <p>I am trying to access <code>CallManager</code> class object from <code>com.android.internal.telephony</code> package. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>ClassLoader classLoader = TestActivity.class.getClassLoader();
  final ClassLoader classLoader = this.getClass().getClassLoader();
  try {
      final Class&lt;?&gt; classCallManager =
          classLoader.loadClass("com.android.internal.telephony.CallManager");
      Log.i("TestActivity", classCallManager);
  } catch (final ClassNotFoundException e) {
      Log.e("TestActivity", e);
  }
  </code></pre>
  
  <p>Unfortunately, this is throwing a <code>ClassNotFoundException</code>. The same approach allows me to access <code>PhoneFactory</code>, but apparently I'm not allowed to access <code>CallManager</code>.</p>
  
  <p>If I could reach the class, then I'd want to proceed using the class as follows:</p>
  
  <pre><code>Method method_getInstance;
  method_getInstance = classCallManager.getDeclaredMethod("getInstance");
  method_getInstance.setAccessible(true);
  Object callManagerInstance = method_getInstance.invoke(null);
  </code></pre>
  
  <p>Can anyone help me on this?</p>
  
  <p>Thanks in advance,<br>
  Harsha C</p>