Only text message is able to send through this code but I don't know how to code for to send current location link with text message
case R.id.button7:
Intent i1 = new Intent(Intent.ACTION_CALL);
i1.setData(Uri.parse("tel: 700000000"));
startActivity(i1);
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage("70000000", null, "hello", null, null);
Toast.makeText(getApplicationContext(), "SMS Sent!",
Toast.LENGTH_LONG).show();
} catch (Exception e) {
Toast.makeText(getApplicationContext(),
"SMS faild, please try again later!",
Toast.LENGTH_LONG).show();
e.printStackTrace();
}
}}