Saturday, September 7, 2013

Running System Processes in Android app

Running System Processes in Android app

I am developing an Application in Android mobile phone which supports a
Hot-Swap Sim card. I am having Three Buttons in my App. First Button
"Remove Sim"(Switches to Airplane Mode ON).
After pressing first button, The user will remove the sim and insert
another sim.
Then presses Second button called "Detect Sim"(Switches to Airplane Mode
OFF). Which should get newly inserted sim to be latched on to the Network.
Third Button will be "Get Details" which displays sim phone number. And
the cycle repeats for different sim cards.
In this scenario I observed that, If I make the phone to remain sim-less
for more than a minute or two while swapping sim cards, Even switching to
airplane mode and back wont help in latching sim to the network. (GSM
standards). In other words, it wont detect any sim till phone reboot. So I
thought of running a Thread or Process inside Android app which will run
only the section of sim card latching (as it does while booting) without
rebooting the phone.
Can anyone please help me how to run such Threads or Processes in Android
App? Is it Really possible to achieve this?

No comments:

Post a Comment