This is my link source code, I want to ending the out going call ending particular time.after some limit time another out going call going.
Asked
Active
Viewed 2,878 times
2 Answers
1
for ending an call in android add ITelephony.aidl
in your project and call endCall()
method like this :
private void endCall() {
//iTelephony
Class<TelephonyManager> c = TelephonyManager.class;
Method getITelephonyMethod = null;
try {
getITelephonyMethod = c.getDeclaredMethod("getITelephony",(Class[]) null);
getITelephonyMethod.setAccessible(true);
ITelephony iTelephony = (ITelephony) getITelephonyMethod.invoke(mTelephonyManager, (Object[]) null);
iTelephony.endCall();
Log.v(this.getClass().getName(), "endCall......");
} catch (Exception e) {
Log.e(this.getClass().getName(), "endCallError", e);
}
}

ρяσѕρєя K
- 132,198
- 53
- 198
- 213
-1
package com.android.internal.telephony;
interface ITelephony {
boolean endCall();
void answerRingingCall();
void silenceRinger();
}
creating one packing save it this

Satya
- 340
- 7
- 17