I need to move the incoming messages in my android phone directly to the sim card. I know I can click the message and move manually to SIM, but I need to do it automatically. I couldnt find that option anywhere in the settings. I am also fine with an app doing this.
You can try to use AT commands (in your program). E.g. AT+CPMS="SM","SM","SM" - this makes your phone to use its SIM card as the SMS storage.
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 want to know what commands my sim card application toolkit is sending to the service provider.
I read somewhere that sim card application toolkit sends commands in the form of SMS or USSD. I want to know those commands.
I'm using an android phone but I can use some other phone if required. I need a detailed answer since I'm not good in all of these things.
I actually want those commands so that I can create an application to make changes in stk. There are 5 steps in my orignal stk to make a recharge but I can reduce that in 2 steps if i will know exact commands so kindly guide me about it.
Yes, sim card application toolkit may send commands in the form of SMS or USSD to operator when needed.
The sending of SMS or USSD, or even call to some specified number is trigger in modem. To find the SMS/USSD content, You need a modem log containing OTA info. You can't find those info from an Android logcat log for sure.
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
In android, how do I capture the event of SIM card removal? Usually on phones like htc 1x, we can remove the SIM card without removing the battery and there is no notification as such of power off or restart of the phone. I want to capture the event of SIM card removal, so that I can pop-up some messages.
Check answer number one, You can check whether the sim card is available or not in device by using TelephonyManager class.
How can I check whether the Sim Card is available in an android device?
According to this answer, the system sends out an android.intent.action.SIM_STATE_CHANGED intent when the SIM card when the SIM card changes, for example when entering or leaving airplane mode, and presumably also when removing or inserting a SIM card.
It should be noted that as this is an undocumented API that may change without notice, and it may also not be available on some devices.
As for shutting down or restarting, according to this answer, the system sends out an android.intent.action.ACTION_SHUTDOWN intent (on Android 1.6 or later).
I have a sim card with disabled TS11 (Tele Service: Telephony), im using this card only for data connection. My question is: it is possible to disalble TS11 service on android? Because when this sim card is in use, my phone thinks that there is no service and trying to find network wchich causes battery drain. Is there any solution for this problem?
This is a known problem with data-only SIM cards. To fix this, you'll need a rooted phone (or a phone with ability to pull/push files from /system partition). Also, you should save a backup of your framework.jar, because your phone might not work well with voice/data SIM cards after this modification. But, if you push original framework.jar back to your phone, everything will be restored.
The modification changes phone status to IN_SERVICE even when it's not connected to the network, so the phone stops searching for networks. Here are the details, however I don't recommend using batch file and prefer to to all modifications manually, it's safer that way.