How to dial special characters using Android intent?

I am trying to use the code below to dial a number, but it is always * 111

Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:*111#")); startActivity(callIntent); 

Please help, I'm trying to learn Android.

Thank you friends ..

+4
source share
1 answer
 Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+ Uri.encode("*111#"))); startActivity(callIntent ); 

Happy coding :)

+5
source

All Articles