Using the application, I want to run the USSD code, but the problem is that it does not recognize the "#" character. If I want to run "* 100 #", it only recognizes the input as "* 100". How to add "#". and what is the reason not to admit it?
Here is my code ...
checkBalance.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_CALL);
i.setData(Uri.parse("tel:"+"*100#"));
if (ActivityCompat.checkSelfPermission(mobitelPage.this,
Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
return;
}
startActivity(i);
}
});
source
share