How do I call a number ending with \'#\' sign using android dialer?
My code is as follows,
EditText firstNumber;
Button btnAdd;
@Override
protected voi
This is how you call a number ending with '#' using android dialer. You need to encode and then parse.
Try the below code,
String text = et.getText().toString();
Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + Uri.encode("*221*" + text + "#")));
startActivity(intent);
Using this link you can get unicode and hex values
for example 36 can be stored in strings.xml as
<string name="abcd">36</string>