Android Question Send SMS with Set Slot SimCard


New Member
Hello friends
I was able to use the following codes to get the SIM card ID to send a message and send the message with that SIM card.
Set Slot SimCard:
Dim r As Reflector
    r.Target = r.RunStaticMethod("android.telephony.SmsManager", "getSmsManagerForSubscriptionId", Array As Object(idSimCard), Array As String(""))
    Dim parts As Object
    parts = r.RunMethod2("divideMessage", pm, "java.lang.String")
    r.RunMethod4("sendMultipartTextMessage", Array As Object(tell, Null, parts, Null, Null), Array As String("java.lang.String", "java.lang.String", "java.util.ArrayList", "java.util.ArrayList", "java.util.ArrayList"))

But in Android SDK +30, the message is sent only with SIM card 1 and apparently the SIM card ID is not set in the message sending codes.

Please guide me so that I can send messages with the desired SIM card