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


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