good morning
I am developing a mobile app for ASHA 200, however when running this app and chip 2 is removed the same is aborted, I wonder if there is any way to treat the action of removing the chip so that the app did not close
Printable View
good morning
I am developing a mobile app for ASHA 200, however when running this app and chip 2 is removed the same is aborted, I wonder if there is any way to treat the action of removing the chip so that the app did not close
Generally removing SIM cars should always cause teh device to reboot, and there is nothing you can really do for that.
The nokia ASHA 200 has a feature to quickly swap SIM 2, when it is removed an alert is displayed and all apps are closed. So imagine if the card withdrawal activates this alert then there is an event generated by this action.
Typically Java ME is not the environment where you can keep an application alive when the OS wants to close it. You can try scheduling yourself in destroyApp using the Push Registry, and thus have restarted later, but it is still problematic to find out if destroyApp comes from a SIM change ot not.
Your Nokia offers „Active Swap“, sometimes called „Easy Swap Dual SIM“, which does not reboot the device (and should not exit a Java MIDlet). However, the problem you face is a [url=http://www.developer.nokia.com/Resources/Library/Java/#!developers-guides/application-framework/dual-sim.html]known issue[/url].