MAKING CALL IN ANDROID
public void makecall(View v)
{ EditText
e1=(EditText)findViewById(R.id.editText1);
String number=e1.getText().toString();
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:"+number));//change the
number
startActivity(callIntent);
}
No comments:
Post a Comment