This is not part of the SDK.  These are private APIs.  Doing this will
result in an app that misbehaves on some devices.

On Wed, Feb 16, 2011 at 11:17 PM, Peacemaker <[email protected]>wrote:

> You have to download ITelehony.aidl (google for it) which will
> generate the appropriate Interface for you and then you can use
> reflection like this:
> TelephonyManager phoneManager =
> (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
> Method getMethod =
> phoneManager.getClass().getDeclaredMethod("getITelephony");
> getMethod.setAccessible(true);
> ITelephony phoneService = (ITelephony)getMethod.invoke(tm);
>
> Now you can use functions like endCall() to reject calls etc.
>
> On 16 Feb., 14:36, bareya <[email protected]> wrote:
> > Hi I'm new android developer group and I'm trying get access to
> > ITelephony class, but form sdk it's not available. I can't find any
> > information on the web where i can get "full" API with full access.
> > Can You help me and give me andy information about it ?
> > Please,
> > Peter
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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