On Thu, Jan 20, 2011 at 5:35 AM, Harsha <[email protected]> wrote:
> Hi, I am trying to access CallManager class object from
> "com.android.internal.telephony" package. here is my code: {
>
> classCallManager =
> Class.forName("com.android.internal.telephony.CallManager");
>
> Method method_getInstance; method_getInstance =
> classCallManager.getDeclaredMethod("getInstance");
> method_getInstance.setAccessible(true); Object callManagerInstance =
> method_getInstance.invoke(null);
>
> }
>
> but this throwing ClassNotFoundException.
>
> can any one help me on this? same way it is allowing me to access
> "PhoneFactory", but not allowing to access CallManager

Please don't do this.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to