안드로이드 개발 질문/답변
(글 수 45,052)
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.CALL_PRIVILEGED"/>
위의 퍼미션 추가하고
Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:" + strNumber));
startActivity(intent);
이렇게 하면
112, 119 전화 가능하다고 하는데..
왜 안되는지 모르겠습니다..ㅠㅠ
일반 번호는 되는데...그냥 긴급전화 번호는 안되네요...ㅠㅠ 미치겠습니다
그냥 다이얼로그 창에 "112" 번호만 뜹니다..ㅠㅠ
2011.01.05 15:53:17
Intent.ACTION_DIAL 을 써보세요..
API 문서에 Intent.ACTION_CALL 은 긴급전화가 안 된다고 나와있습니다.
http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL
API 문서에 Intent.ACTION_CALL 은 긴급전화가 안 된다고 나와있습니다.
http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL



