- Joined
- Nov 17, 2021
- Messages
- 8
- Reaction score
- 0
We are working on an Android application, In that we did code for redirect to call a number using the 3cx app
That works perfect for us. & place number in 3cx Phone dial screen like you can see below, so user can call on placed number if he needed.
You can see the code we are using below too
We want to do the same with SMS sending to a number we define in our app
But we didn't find any reference intent code for sms
Is there a solution for that ?
We do not need to deal with the text to be sent only to open the send sms screen with the right number as receiver
Thanks
Call works well and open screen like this:

The code we are using for the call :
That works perfect for us. & place number in 3cx Phone dial screen like you can see below, so user can call on placed number if he needed.
You can see the code we are using below too
We want to do the same with SMS sending to a number we define in our app
But we didn't find any reference intent code for sms
Is there a solution for that ?
We do not need to deal with the text to be sent only to open the send sms screen with the right number as receiver
Thanks
Call works well and open screen like this:

The code we are using for the call :
PackageManager manager = getPackageManager();
try
{
boolean isAppInstalled = uf.appInstalledOrNot(mContext,"com.tcx.sipphone14");
if(isAppInstalled)
{
// what number here we passed in sip, it'll redirect & place as mobile number in 3cx dial screen
Uri phoneCall = Uri.parse("sip:"+str_customer_phon);
Intent caller = new Intent(Intent.ACTION_SENDTO, phoneCall);
startActivity(caller);
}
else
{
mContext.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.tcx.sipphone14")));
}
}