package com.lingzhuo.dialer;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button bt=(Button) findViewById(R.id.bt_call);
//给按钮设置点击侦听事件
bt.setOnClickListener(new Mylistener());
}
class Mylistener implements OnClickListener{
//按钮被点击时,调用此方法
@Override
public void
Android电话拨号程序
最新推荐文章于 2021-05-27 00:28:57 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)