GZA GZA - 4 days ago 4
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));

GZA GZA
Answer

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

Comments