HI ,
i want to check wether Airplane mode is on or not .. how to check that ?
thanks + how to check that the user is using WIFI or GPRS OR EDGE . how to differentiate ??
On Android phones, airplane mode is activated by swiping down from the top of the screen two times to open the Settings panel. There, you'll see an airplane icon. When you activate it, your phone is on airplane mode.
On An Android: If you successfully put your phone into “airplane mode” before the message is delivered to the recipient, the function blocks all cell and wifi signals from getting to your phone. That means, the potentially embarrassing text message won't go through.
If you just want show notification, when user is in airplane mode, then it's enough to enable SBUsesNetwork property in your app's plist file. When your code is using network, user is prompted to turn off Airplane mode automatically.
See e.g. this post.
I'm not sure if you can check specifically for airplane mode but the reachability example from the iphone adc website enables you to check if the iphone has access to the internet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With