I want my App to get TextView
value add # sign to it and dial USSD code, but the program is just dialing normally and showing the full concatenated text included.
I am using Android 2.0
//To request permission and this work fine, because of its dialing. But I want it to run USSD not dial
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
if(requestCode == REQUEST_CALL){
if(grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED){
makeCall();
} else {
Toast.makeText(this, "permission Denined.", Toast.LENGTH_SHORT).show();
}
}
}
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + uSSD +phone+'*'+Amount+NairaSign));
startActivity(intent);