Good day.
Faced the following problem. On version 4.2 android does not work sending USSD requests. There is an assumption that the number is incorrectly parsed by the application for dialing numbers. At the same time, the code below works fine on lower and higher versions. Maybe someone faced a similar problem?
Here is the code:
final String ussd = "*100*1"; final String encodedHash = Uri.encode("#"); final Intent ussdIntent = new Intent(Intent.ACTION_CALL); ussdIntent.setData(Uri.parse("tel:" + ussd + encodedHash)); mActivity.startActivity(ussdIntent);