您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> 安卓开发 >> 正文

增加android拨打电话的权限的方法

作者:佚名    责任编辑:admin    更新时间:2022-06-22

大家知道增加android拨打电话的权限吗?下面我们就给大家详细介绍一下吧!

?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
        android:orientation="vertical" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        > 
<TextView     
        android:layout_width="fill_parent"    
        android:layout_height="wrap_content"    
        android:text="Please input the phoneNumer:" 
        /> 
<EditText 
 android:id="@+id/et1" 
 android:layout_width="fill_parent" 
 android:layout_height="wrap_content" 
 android:phoneNumber="true" 
/> 
<Button 
 android:id="@+id/bt1" 
 android:layout_width="wrap_content" 
 android:layout_height="wrap_content" 
 android:text="Call Phone" 
/> 
</LinearLayout> 

相信大家已经学会增加android拨打电话的权限了吧!感谢大家对我们网站的支持!