GZA GZA - 1 year ago 73
Android Question

Sending ACTION_CALL Intent in Android containing hash # sign

I am having the problem that the hash sign is truncated. Does anybody know a solution? using unicode or %23 is not working in my case. Now the number that is dialed is *101

String uri = "tel:" + "*101#";

//String uri = "tel:" + "*101\u0023";

Intent intent;
intent = new Intent(Intent.ACTION_CALL, Uri.parse(uri));

Answer Source

Found a solution: String encodedHash = Uri.encode("#"); this did the trick...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download