How can I make a call without taking user to dialer activity. Is there any way to do it? I have a requirement where i have to implement it auto without user interaction. I have below code which is taking me to dialer that i have to avoid.
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
try like this.
Intent callIntent = new Intent(Intent.ACTION_CALL_BUTTON);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
ie use ACTION_CALL_BUTTON insted of ACTION_CALL
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.