点击一个Button按钮跳到手机自带的拨号器页面,怎样实现??

一个页面有个Button按钮,点击一个Button按钮跳到手机自带的拨号器页面,怎样实现??

点击Button按钮跳转的手机自带的拨号页面,在自带的页面拨号,你这个是在Editview输入电话按Button拨号,我的意思是点击Button自动跳转的手机自带的拨号页面,在手机自带的拨号页面进行拨号
温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-06-29
public void onClick(View v) {
    String number=btnPhone.getText().toString();
    Intent intent=new Intent();
    intent.setAction(Intent.ACTION_DIAL);
    intent.setData(Uri.parse("tel:"+number));
    startActivity(intent);
}

本回答被网友采纳
第2个回答  2014-01-17
button1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) {//电话号码 String number=eText.getText().toString(); //跳转 Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+number)); PhoneActivity.this.startActivity(intent); } });
第3个回答  2017-07-07

public void onClick(View v) {
    String number=btnPhone.getText().toString();
    Intent intent=new Intent();
    intent.setAction(Intent.ACTION_DIAL);
    intent.setData(Uri.parse("tel:"+number));
    startActivity(intent);
}

第4个回答  2014-01-17
我又来支持了!坛子里因你而精彩~~~

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网