I'm working on Call and SMS Intent while user click on call and SMS button.
Question:
1) Need to add permission in AndroidManifest.xml file?
2) Need to code for runtime permission also?
I write code for call intent is below:
Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:" + driverMobileNo));
startActivity(intent);
SMS intent
Intent it = new Intent(Intent.ACTION_SENDTO, Uri.parse("smsto:"+ driverMobileNo));
it.putExtra("sms_body", "The SMS text");
startActivity(it);
Above code working fine (tested in Oreo 8.0 version) without adding permission in AndroidManifest.xml and also runtime.