If you are facing any issue in playing video please use Firefox browser.
Create Call Application in Android
In today's video we are going to create a Call application in Android.
First of all we will design the layout of our application, for that we will go to activity_main.xml file and inside we have designed TextView stating 'Enter Phone Number', EditText to write phone number, and a 'Dial' Button.
Now we will take instance for our button and edittext,
private Button button;
private EditText etPhoneno;
Now we will do view identification for required,
Further we will create one listener for our button, button.setOnClickListener(new onClickListener())
public void onClick(View v)
Intent callintent=new Intent(Intent.ACTION_CALL);
Now we will execute our code, it runs successfully and after we enter the phone number, call gets dialled.
Have a friend to whom you would want to share this course?