I have a button and EdiText. in the EdiText I enter a phone number. By clicking on the button I need to call on this phone. but does not cause CallActivity and call directly from the application. how to do it?
tel = (EditText) findViewById(R.id.editText);
...
public void clic(View view) {
String number = tel.getText().toString();
}
and
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>