๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐ŸŒตandroid

[์•ˆ๋“œ๋กœ์ด๋“œ] ์ „ํ™” ๋ฐ”๋กœ ๊ฑธ๊ธฐ

by _viper_ 2015. 9. 16.
๋ฐ˜์‘ํ˜•

 ์›ํ•˜๋Š” ๋ฒˆํ˜ธ๋กœ ๋ฐ”๋กœ ํ†ตํ™” ๊ฑฐ๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

 

AndroidManifest.xml

<!-- ์ „ํ™”๊ฑธ๊ธฐ -->
 <uses-permission android:name="android.permission.CALL_PHONE" />

 

์ž๋ฐ”์ฝ”๋“œ

String telNo = "010-0000-0000";
Intent call = new Intent(Intent.ACTION_CALL, Uri.parse("tel:/" + telNo));
startActivity(call);