<TelephonyManager.UssdResponseCallback sometimes u...
# stackoverflow
u
TelephonyManager.UssdResponseCallback sometimes use to dial the code successfully but still go to the onReceiveUssdResponseFailed callback Am working on an app to dial ussd code in background but am having a critical issue concerning the ussd callback, sometimes the code will successfully dialed but still the onReceiveUssdResponseFailed is still called public void dialUssdToGetPhoneNumber(String ussdCode, int sim) { if (ussdCode.equalsIgnoreCase("")) return; if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) { requestPermissions(new...