I'm trying to call two different numbers, for #193 it works correctly, by that I mean pressing the button start calling the number:
btnb = (ImageButton) findViewById(R.id.activity_home_button_b);
btnb.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:193"));
startActivity(callIntent);
}
});
But for the #190 it does give me the screen to dial the number instead of making the call.
btna = (ImageButton) findViewById(R.id.activity_home_button_a);
btna.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:190"));
startActivity(callIntent);
}
});
Any advice?