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 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