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); 

    1 answer 1

    Browse through these articles on Habré USSD on Android and this Simple USSD request in Android 4.0+

    Also in the network there is an article (True old) on the robot with ussd - How to handle requests in Android USSD / MMI . See also this answer . On githab there are sorets on working with USSD queries. Well, if you really want to, and the links above did not help anything, then try to make out ready-made applications for android: Quiet Balance - Works with the version of Android 1.6 and higher. USSD Notifications - starting from 4.1.