[英]At the time of Send SMS from dual sim Phone ask Which sim to send sms in Xamarin Android?
I am a Xamarin
Android Developer. 我是Xamarin
Android开发人员。 I am trying to send SMS from dual sim phone device. 我正在尝试从双卡手机发送短信。 I need to ask to choose either from SIM1 or SIM2 at the time of sending SMS. 我需要在发送短信时从SIM1或SIM2中进行选择。
But in xamarin the android code for send SMS 但是在xamarin中,用于发送短信的android代码
SmsManager.Default.SendTextMessage (from1 [i], null, message, null, null);
SmsManager.Default.SendTextMessage (from1 [i], null, message, null, null);
always chooses DEFAULT SIM
of the mobile. 始终选择手机的DEFAULT SIM
。
I tried the android code but its not supported in Xamarin Android
. 我尝试了android代码,但Xamarin Android
不支持它。 Please suggest me the proper solution. 请建议我适当的解决方案。
The dual SIM support is available from Android 5.1 onwards. 从Android 5.1开始支持双SIM卡。 You may want to use the SubscriptionManager 您可能要使用SubscriptionManager
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.