I want to send sms using Dual Sim Mobile, make sim selection option, while sending sms.
I have vefiried this link fully:
Android : Check whether the phone is dual SIM
this question is based on this question only. thats why could not type the same program now.
Note: I have detected dual sim with its state also successfully using the above mentioned link program.
My Question: i have two sim,first sim airtel( having data connection), second sim is newly(Jio 4g) bought sim( waiting for Customer Care Activation)
when i detect sim state, both showing true only.then, i want to send sms using both sims.
Here Problem is : Sim State is showing both true. But, My Second sim tower is not showing.because of waiting for activation.
How to detect the two Sims having tower/Network having or not? This is my Problem
I have just tried with getNetworkType() method. But, Exactly, I dont know, How to check using this code in this dual sim options..
Please anyone help me to solve this issue
Thanks Advance
Related
I am working on an app that successfully intercepts NEW_OUTGOING_CALL broadcast on outgoing calls and handles calls accordingly. Everything works perfectly fine on single SIM devices.
On Dual SIM devices, I am able to detect which SIM is the default calling SIM by reading the ICCID (it changes depending on which SIM is the default calling SIM) and I am also able to handle calls accordingly (either handle it by my app or pass it back to the native dialer).
The problem I am facing is when users choose the "Ask every time" option. When they choose that option, the ICCID is still read as whichever SIM was set as the default SIM last.
I would like to detect that users have chosen this option so I can pop up a dialog thats asks them, which SIM they want to conduct their call over.
I searched through stackoverflow and scoured everything I could find on Dual SIM but I couldn't find an answer to this question. All the logic I added into handling calls on Dual SIM phones has been rendered useless by this part.
Is there something I can read (whether its a broadcast or an intent extra or an android setting) that would tell me that users want to be asked which SIM to use every time they attempt a call?
Thanks for the help.
I need to develop an application to enable data of a dual-sim android phone.
For example, sometimes I need to enable data on the first sim, and other times for the second sim.
I discovered an api called mediatek
It is an api that allows us to manipulate dual sim. I take a look on the playstore, and then I found the application
Dual Sim Control which allow us to manipulate sim card of the phone.
When I look at the api reference of mediatek, I only see some method to get the sim card information but no method to change the sim information.
I need your help to enable or disable data on the dual sim android phone baseed on mediatek processor.
Thanks
I am new to android and am making an app to send messages programmatic-ally . Since, I couldn't find a way to detect which SIM is used to send an SMS or that Dual SIM wasn't supported or applicable, my question is:
Is there a way to block a SIM Card in one's android phone? By "block" I mean, SIM_STATUS is returned to false by some means without actually removing the SIM from the SIM slot? Like, it stays there but is not ready to be used. Also, can i do the opposite?
And all this programmatic-ally without doing anything to the phone on manual basis.
By default android does not supported dual SIM. but
if u set default SIM for sms from android setting . your application will always send SMS from your default SIM
After a long time i researched for retrieving the signal strength of dual Sim. I want to know the phone is dual Sim or not. If it is dual Sim phone i need to know each and every Sim signal strength.
Please give me a proper solution
There is no API in android to detect dual sim functionality. You can use Java reflection to detect dual sim. Please follow below link for more details
Android : Check whether the phone is dual SIM
I have a dual sim Android phone. Using this solution I retrieve IMEI numbers of both sims.
Given the IMEI number, how can I find out the phone number of each sim?
There are methods getDeviceIdGemini(int slotId) and getSimStateGemini(int slotId) it is possible to find out the IMEI number and the state of each sims.
I'm looking for a similar method for reading the phone number of the sim.
You can't. Phone number it's not stored on sim card, it's stored on operator's servers. Look for TelephonyManager.getSubscriberId(), this will give the unique id for each SIM.
Programmatically obtain the phone number of the Android phone
Basic answer- there is no way to get your current phone number. There's things that sometimes work, but not always and not on all carriers.
No,
Android doesn't support dual sim devices.
See: Detect the status of two SIM cards in a dual-SIM Android phone
as Android does not support multiple SIMs, at least from the SDK.
You can contact your device manufacturer and see if they have an SDK add-on or something that allows you to access the second SIM.May be an API which can help youto get your desired result.
Although you can find out the status of the device whether it is Dual sim or not by using this link Android : Check whether the phone is dual SIM
Using reflection, I looked at the methods of TelephonyManager and found this method: int getLine1NumberGemini(int).
I tried to invoke it (getLine1NumberGemini(0) for first sim and getLine1NumberGemini(1) for the second). In both cases I received an empty string.
But the reason for this seems to be the inability of the phone to get the phone number of my sims:
TelephonyManager.getLine1Number() returns empty string as well.
When I open "Sim management" in the settings of the phone, no phone numbers are displayed.