How to know if the mobile device is in Airplane mode

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
LEBAS
Posts: 23
Joined: Fri May 11, 2012 5:02 pm

How to know if the mobile device is in Airplane mode

Post by LEBAS »

In a form view template or ECL script, is it possible to know if the mobile device is currently in Airplane mode?

Regards,
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: How to know if the mobile device is in Airplane mode

Post by MarkDuignan »

Do you mean airplane mode (as in the user has flicked the Settings switch to Airplane mode on) or just whether any internet connection exists at this moment?
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: How to know if the mobile device is in Airplane mode

Post by MarkDuignan »

Sorry Yann - I could not resist this one.

Q: How can you tell if your device is in airplane mode?

A: Throw it as high as you can into the air.

If it is in airplane mode it will sprout wings and fly – like this:
Image1.png
Image1.png (34.29 KiB) Viewed 3854 times

If it crashes back to earth like this – then it is not in airplane mode.
Image2.png
Image2.png (52.57 KiB) Viewed 3854 times
LEBAS
Posts: 23
Joined: Fri May 11, 2012 5:02 pm

Re: How to know if the mobile device is in Airplane mode

Post by LEBAS »

Mark, if you don't mind, I will try your last suggestion later :)

A better question could be: "In a form view template or ECL script, how can we test that we can currently reach the LongRange server?"
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: How to know if the mobile device is in Airplane mode

Post by tsupartono »

No easy way to do that right now.
We'll add a function to do that in the next release.
Post Reply