2014. 4. 7. 20:13ㆍPrograming/Android / Java
1. Make Package
2. Name : com.android.internal.telephony
3. ITelephony.aidl 생성
4. ITelephony.aidl 내용 삽입
인터넷에 돌아다니는 ITelephony.aidl 내용을 복사하여 붙여 넣거나, 필요한 부분만 추가.
package com.android.internal.telephony;
import android.os.Bundle;
import java.util.List;
interface ITelephony {
/**
* Dial a number. This doesn't place the call. It displays
* the Dialer screen.
* @param number the number to be dialed. If null, this
* would display the Dialer screen with no number pre-filled.
*/
void dial(String number);
/**
* Place a call to the specified number.
* @param number the number to be called.
*/
void call(String number);
/**
* If there is currently a call in progress, show the call screen.
* The DTMF dialpad may or may not be visible initially, depending on
* whether it was up when the user last exited the InCallScreen.
*
* @return true if the call screen was shown.
*/
boolean showCallScreen();
/**
* Variation of showCallScreen() that also specifies whether the
* DTMF dialpad should be initially visible when the InCallScreen
* comes up.
*
* @param showDialpad if true, make the dialpad visible initially,
* otherwise hide the dialpad initially.
* @return true if the call screen was shown.
*
* @see showCallScreen
*/
boolean showCallScreenWithDialpad(boolean showDialpad);
/**
* End call or go to the Home screen
*
* @return whether it hung up
*/
boolean endCall();
}
5. Project Clean
'Programing > Android / Java' 카테고리의 다른 글
Android/JAVA - Binder Source Analysis (바인더 소스 분석) (0) | 2014.04.07 |
---|---|
Android/JAVA - End Call (내 어플에서 통화 종료 하기) (0) | 2014.04.07 |
Android/JAVA - Dial (다이얼 화면 띄우기) / 전화걸기 (0) | 2014.04.05 |
Android/JAVA - BroadcastReceiver에서 Activity 호출하기 (0) | 2014.04.05 |
Android/JAVA - 액티비티를 항상 최상위에 띄우기 (0) | 2014.04.05 |