0

I want to pass a # through Uri.parse. Now I am getting the value in the number variable but when I click on the button, the # suddenly disappears, why does this happen?

list_But.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Log.v("Value before Clicked", item.toString());
        String number = item.replaceAll("[A-Za-z]", "");

        Log.v("Value after Clicked", number.toString());
        Intent i = new Intent(android.content.Intent.ACTION_VIEW,
                Uri.parse("tel:" + number));
        context.startActivity(i);
    }
});
Ray Britton
  • 8,257
  • 3
  • 23
  • 32

0 Answers0