I would like to perform network providers search on my dual SIM device. So far I've been doing so by opening the "Available networks" or the "Network operators" menu item in the "Network settings" page. I've been doing it using this intent:
intent.setComponent(ComponentName.unflattenFromString("com.android.phone/.NetworkSetting"));
This opened the right activity directly, and automatically started searching for the available networks.
However, I'm on a dual SIM device right now, and whenever I open that activity by the intent above, It is opened on the "SIM2" tab of the activity, and hence I receive an error searching for available networks (SIM2 is empty, but it doesn't matter, because I want that functionality for SIM1). Is there any way to select which SIM to open the activity under? or a proper way to open the needed activity for searching networks on the main SIM?
I have been searching and it's not a very common thing, so nothing was found actually.