title: How to call phone number ending with # using Android Dialer
body: <p>How do I call a number ending with '#' sign using android dialer?</p>
  
  <p>My code is as follows,</p>
  
  <pre><code>EditText firstNumber;
  Button btnAdd;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main23);
  
      Toast.makeText(Main23Activity.this,
              "Type in your Pin Number", Toast.LENGTH_LONG).show();
  
      btnAdd = (Button)findViewById(R.id.button12);
  
  
  
  
  
      btnAdd.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
              try {
  
                  numberSign = "#";
  
                  EditText et = (EditText) findViewById(R.id.editText6);
                  String text= et.getEditableText().toString();
  
                  Toast.makeText(Main23Activity.this,
                          "Adding Money to your account has never been this easy", Toast.LENGTH_LONG).show();
  
                  Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:*221*" + text + numberSign  ));
                  startActivity(intent);
              } catch (Exception e) {
              }
          }
      });
  
  }
  </code></pre>
  
  <p>}</p>