[SOLVED]How to change Apirplane mode/flight mode from Native API?

Technical | Platform | brs152002 | Just now | 4 Replies | 2,022 Views

*

brs152002

  • *
  • 3
  • 125 Points
  • I Love Tizen
I am trying to enable/disable flight mode from Native app using ystem_settings_set_value_bool, however this API seems removed from 2.3 version.
Is there any other way to achieve this?

(In 2.3 version it is only possible to read the flight mode state but cannot be controlled/toggled.)
Thanks for any pointers
« Last Edit: July 27, 2015, 03:40:25 PM by Zed Zapped »



*

Suresh Kumar N

  • **
  • 23
  • 255 Points
Re: How to change Apirplane mode/flight mode from Native API?
« Reply #1 On:July 16, 2015, 02:50:10 PM »
Airplane/Flight mode handling is restricted from 3 places in Tizen -
  1. Settings menu
  2. Notification panel (drop down)
  3. Power button long press


It would be advisable to launch Flight mode (Settings menu) from application so that user can enable/disable the same.

*

EFL

  • **
  • 59
  • 1320 Points
Re: How to change Apirplane mode/flight mode from Native API?
« Reply #2 On:July 16, 2015, 02:53:39 PM »
Airplane/Flight mode handling is restricted from 3 places in Tizen -
  1. Settings menu
  2. Notification panel (drop down)
  3. Power button long press


It would be advisable to launch Flight mode (Settings menu) from application so that user can enable/disable the same.


The author's question is about being able to set the value of flight mode to ON or OFF via API from his own application.

*

Praveen Chikkappaiah

  • **
  • 34
  • 305 Points
    • View Website
Re: How to change Apirplane mode/flight mode from Native API?
« Reply #3 On:July 16, 2015, 03:01:14 PM »
@Poornima, the policy in Tizen restricts downloadable apps from controlling the Flight mode using APIs.
However the developers can control the flight mode by launching the settings menu. This is done inorder to alert the user & get confirmation prior to taking the action.

*

Suresh Kumar N

  • **
  • 23
  • 255 Points
Re: How to change Apirplane mode/flight mode from Native API?
« Reply #4 On:July 16, 2015, 03:07:17 PM »
In case any native application is built-in to the platform (non-downloadable) then they can directly use Telephony APIs directly and control Flight mode settings.
But care must be taken to prompt User for confirmation.

Tags:
 


Facebook Comments




anything