Answer the question
In order to leave comments, you need to log in
How to turn on / off. SIM1 or SIM2 via java code on android?
You need to create a widget with two buttons, which will turn on or off one or another SIM card by pressing the buttons. On Stackoveflow, I found an implementation of turning AirPlane mode on and off. But I can not understand how to manage a specific sim card.
Answer the question
In order to leave comments, you need to log in
Standard api does not support 2 sim cards. This is a feature of manufacturers. It is also impossible to enable or disable the sim card using the standard api.
If there are such methods, then they are private or hidden (you need to look at the android sources), and this, as a rule, requires either making the application a system one or signing it with the appropriate certificate. And the methods will have to be called by reflection.
In other words, if you really want to, then you can do it specifically for this phone, rut it before that.
I do not think that you will find a ready-made solution. Since this functionality, as far as I remember, is not part of the framework.
Each manufacturer sculpts its own implementation. The easiest way is to disassemble the manufacturer's application and see how they make the switch.
Vladimir, how do you think your customer will react to the way you solve problems?
Is this letter unfamiliar?
Good time of the day! I saw your email on <freelance site> as an android developer. I'm interested in how much it will cost to develop a simple widget (so it seems to me). The essence of the widget is as follows: after installation, you can add buttons on / off sims1 and on / off sims2 to the screen. That's all! Respectfully, .
And about the answer, only for a specific rooted phone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question