I have seen this post from 2012 and it has outdated answers. Until around 2015 Android natively supported multiple sim cards in API 22.
I heard about SubscriptionManager but I am not quite familiar with it, how can I get and dynamically set the currently selected Sim for SMS messages?