【发布时间】:2011-11-08 23:58:03
【问题描述】:
我的代码运行良好,但它所做的只是启动拨号程序。我想要它做的是能够使用特定号码启动拨号器。我该怎么做?
bu5.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
//open the phone dialer on clicking the button
Intent intent = new Intent(Intent.ACTION_DIAL);
startActivity(intent);
}
});
【问题讨论】:
标签: android android-intent phone-number phone-call