To check the balance, first I need to make a call * xxx # , and then I get a response with several options to choose from and after entering a specific number I get a balance.
What code can I use for my Android app?
Dialing * xxx * x # gives me an error.
Below is my code, which is great for * xxx # calls:
String encodedHash = Uri.encode("#"); String ussd = "*" + encodedHash + lCallNum + encodedHash; startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + ussd)));
source share