From wiki.ginstr.com
Jump to: navigation, search

gn:act_serialToTarget

Description
Action is to retrieve device serial number into target
Action returns
void

Action signatures

[gn:act_serialToTarget]|[target]
Parameter Description
target target into which serial number will be stored

Example

initial value
device serial number = 273583945126833
@variable/test =
variables.xml
<variable id="test" 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_serialToTarget]|[@variable/test]" />
after action execution
@variable/test = 273583945126833