한국어

스마트폰앱

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


DTMF 제너레이터 소리만들리고 송출은안됨

http://www.androidadb.com/class/android/media/ToneGenerator.java.html

 

http://developer.android.com/reference/android/media/ToneGenerator.html#ToneGenerator(int, int)

 

전화 상태 관련

 

http://stackoverflow.com/questions/7485482/how-to-identify-incoming-call-and-outgoing-call-in-android

 

 

http://developer.android.com/reference/android/telephony/TelephonyManager.html

 

 

http://stackoverflow.com/questions/10213659/how-to-get-the-state-for-outgoing-calls

 

 

http://androidhuman.tistory.com/269

 

dtmf rtp

 

http://stackoverflow.com/questions/3951000/generating-dtmf-tone-to-send-in-rtp-packet?rq=1

 

keypad

 

http://stackoverflow.com/questions/7289335/soft-keyboard-shows-up-on-edittext-focus-only-once/7291121#7291121

 

 

 

  1. how to get the state for outgoing calls
  2. Bundle bundle=intent.getExtras();
  3.    String phonenumber=intent.getStrngExtra(Intent.EXTRA_PHONE_NUMBER);
  4.        
  5. private Runnable callMonitor = new Runnable() {
  6.         public void run() {
  7.             try {
  8.                 EndCallListener callListener = new EndCallListener();
  9.                 TelephonyManager mTM = (TelephonyManager)m_activity.getSystemService(Context.TELEPHONY_SERVICE);
  10.                 mTM.listen(callListener, PhoneStateListener.LISTEN_CALL_STATE);
  11.             } catch(Exception e) {
  12.                 Log.e("callMonitor", "Exception: "+e.toString());
  13.             }
  14.         }
  15.     };  
  16.  
  17.     private class EndCallListener extends PhoneStateListener {
  18.         private boolean active = false;
  19.         @Override
  20.         public void onCallStateChanged(int state, String incomingNumber) {
  21.  
  22.             if(TelephonyManager.CALL_STATE_RINGING == state) {
  23.                 Log.i("EndCallListener", "RINGING, number: " + incomingNumber);
  24.             }
  25.             if(TelephonyManager.CALL_STATE_OFFHOOK == state) {
  26.                 //wait for phone to go offhook (probably set a boolean flag) so you know your app initiated the call.
  27.                 active = true;
  28.                 Log.i("EndCallListener", "OFFHOOK");
  29.             }
  30.             if(TelephonyManager.CALL_STATE_IDLE == state) {
  31.                 //when this state occurs, and your flag is set, restart your app
  32.                 Log.i("EndCallListener", "IDLE");
  33.                 if (active) {
  34.                     active = false;
  35.  
  36.                     // stop listening                  
  37.                     TelephonyManager mTM = (TelephonyManager)m_activity.getSystemService(Context.TELEPHONY_SERVICE);
  38.                     mTM.listen(this, PhoneStateListener.LISTEN_NONE);
  39.  
  40.                     // restart the inbox activity
  41. //                  Intent intent = new Intent(m_activity, MDInboxActivity.class);
  42. //                  m_activity.startActivity(intent);
  43.                 }
  44.             }
  45.         }
  46.     }
  47.        
  48. public class CallDurationReceiver extends BroadcastReceiver {
  49.  
  50. static boolean flag =false;
  51. static long start_time,end_time;    
  52. @Override
  53.     public void onReceive(Context arg0, Intent intent) {
  54.         String action = intent.getAction();
  55.         if(action.equalsIgnoreCase("android.intent.action.PHONE_STATE")){
  56.             if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(
  57.                                 TelephonyManager.EXTRA_STATE_RINGING)) {
  58.  
  59.                //tOAST FOR INCOMING CALL, NOT YET PICKED UP
  60.  
  61.             }        
  62.             if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(
  63.                     TelephonyManager.EXTRA_STATE_IDLE)) {
  64.                 end_time=System.currentTimeMillis();
  65.  //Total time talked =
  66.                 long total_time = end_time-start_time;
  67.                 //Store total_time somewhere or pass it to an Activity using intent
  68.  
  69. }     if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(
  70.                     TelephonyManager.EXTRA_STATE_OFFHOOK)) {
  71.                  start_time=System.currentTimeMillis();
  72.  
  73. }    
  74.  
  75.     }  
  76.     }
  77.        
  78. <receiver android:name=".CallDurationReceiver">
  79.        <intent-filter>
  80.            <action android:name="android.intent.action.PHONE_STATE" />
  81.        </intent-filter>
  82.     </receiver>
  83.         }
  84.        
  85. <uses-permission android:name="android.permission.READ_PHONE_STATE" />
조회 수 :
22039
등록일 :
2012.08.18
08:05:07 (*.160.42.233)
엮인글 :
http://webs.co.kr/index.php?document_srl=8192&act=trackback&key=2eb
게시글 주소 :
http://webs.co.kr/index.php?document_srl=8192
List of Articles
번호 제목 글쓴이 날짜 조회 수
» 전화관련 안드로이드함수 admin 2012-08-18 22039
5 자바 ,이클립스,Android SDK, ADT 설치하여 무료국제전화 다이얼러를 만들어봅시다. admin 2012-08-06 22031
4 아이폰용 무료국제전화용 무료 다이얼러 Speedydialer 설치및 사용방법 file admin 2012-07-14 18496
3 접속번호 + 상대방번호 # 를 주소록에 전화번호로 저장하여 사용하면 편리하다 admin 2012-06-17 19917
2 App Store - ILD Dialer admin 2012-06-17 16159
1 한국휴대폰에서 미국 중국 카나다 무료 국제전화 서비스 admin 2012-04-27 17296