From wiki.ginstr.com
Jump to: navigation, search
available from 2.5.11

gn:act_getPhoneSettings

Description
Action used to get android device system settings.
Action returns
void

Action signatures

Convert timestamp from certain widget

[gn:act_getPhoneSettings]|[informationType,target]
Parameter Description
informationType Type of information to retrieve from android system settings
  • Valid sources:
    • timeZone timeZones that are allowed: Valid timezones
    • autoDateTime represents phone "Automatic date and time" setting of device. If automatic date and time is "checked/enabled" on device the action will return true
    • language Valid language codes, by ISO-639
target target where the result will get stored

Example

variables.xml
    <variable id="timeZone" type="text"/>
    <variable id="timeCheating" type="status"/>
    <variable id="language" type="text"/>
screen.xml
<FrameLayout
    android:id="@+id/exampleFrame"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:visibility="gone"
    gn:act_set="
    [gn:act_getPhoneSettings]|[timeZone,@variable/timeZone],
    [gn:act_getPhoneSettings]|[autoDateTime,@variable/timeCheating],
    [gn:act_getPhoneSettings]|[language,@variable/language]" />
after action execution

variables "timeZone" , "timeCheating", "language" will contain system values