Get current carrier name or sim slot order number from which data connection is being used
I'm using a dual sim phone with internet connection availability from both sim. I frequently switch between them as per my need.
I'm looking for a way to get the name or slot order for the sim that is being used for internet connection.
I tried getSimCarrierIdName() from TelephonyManager and it gives value for sim1 only.
If possible, add a reliable way to get the current sim name using for internet connection.
Thank you.