[Android Q&A, Help & Troubleshooting] behedwin:
I looked at this and dont really understand what i am looking for.

The task is exported as an .apk app and installed.

I cant figure out why i can run the app. Then after switching to other apps i suddenly cant start it again. It works if i first kill the app!

-----

<TaskerData sr="" dvi="1" tv="6.2.22">
<Task sr="task2">
<cdate>1711887947737</cdate>
<edate>1711920014196</edate>
<id>2</id>
<nme>Say Speed</nme>
<pri>100</pri>
<Kid sr="Kid">
<launchID>2</launchID>
<pkg>se.oskar</pkg>
<vTarg>29</vTarg>
<vnme>1.3</vnme>
<vnum>11</vnum>
</Kid>
<Action sr="act0" ve="7">
<code>47</code>
<se>false</se>
<Str sr="arg0" ve="3">B</Str>
<Int sr="arg1" val="3"/>
<Int sr="arg10" val="1"/>
<Int sr="arg2" val="100"/>
<Int sr="arg3" val="100"/>
<Int sr="arg4" val="10"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="1"/>
<Int sr="arg8" val="1"/>
<Int sr="arg9" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%varStatus</Str>
<Str sr="arg1" ve="3">Tal av</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act10" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="6"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act11" ve="7">
<code>43</code>
</Action>
<Action sr="act12" ve="7">
<code>38</code>
</Action>
<Action sr="act13" ve="7">
<code>37</code>
<coll>false</coll>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%varStatus</lhs>
<op>0</op>
<rhs>Tal av</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act14" ve="7">
<code>366</code>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%gl_latitude
1. Latitude
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%gl_longitude
2. Longitude
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;%gl_coordinates_accuracy
3. Lat, Lon Accuracy
In meters&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;%gl_altitude
Altitude (meters)
In meters&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;%gl_altitude_accuracy
Altitude Accuracy
In meters&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&gt;%gl_bearing
Bearing
in the range 0.0–360.0; Horizontal direction of travel of this device; not related to the device orientation&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6&gt;%gl_bearing_accuracy
Bearing Accuracy
In degrees&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7&gt;%gl_map_url
Google Maps URL
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8&gt;%gl_coordinates
Latitude and Longitude
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9&gt;%gl_satellites
Satellites
The number of satellites used to derive the fix. May not always be available.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES10&gt;%gl_speed
Speed
In meters per second&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES10&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES11&gt;%gl_speed_accuracy
Speed
In meters per second&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES11&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES12&gt;%gl_time_seconds
Time
Time in seconds since EPOCH the location was gotten&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES12&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES13&gt;%gl_time_adjusted_milliseconds
Time Adjusted Milliseconds
Result of adding the current system time with the offset between the system time and the location time&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES13&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES14&gt;%gl_time_gnss_milliseconds
Time GNSS Milliseconds
Time in milliseconds since EPOCH the location was gotten synchrined to the device's location provider&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES14&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES15&gt;%gl_time_milliseconds
Time Milliseconds
Time in milliseconds since EPOCH the location was gotten&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES15&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES16&gt;%gl_time_offset_milliseconds
Time Offset Milliseconds
Time difference in milliseconds between the system time and the location time&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES16&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES17&gt;%gl_time_taken_millis
Time Taken
Time in milliseconds that it took for Tasker to get the location&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES17&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Int sr="arg1" val="30"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Str sr="arg8" ve="3"/>
<Int sr="arg9" val="0"/>
</Action>
<Action sr="act15" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%varSpeed</Str>
<Str sr="arg1" ve="3">(%gl_speed*3600)/1000</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act16" ve="7">
<code>30</code>
<se>false</se>
<Int sr="arg0" val="0"/>
<Int sr="arg1">
<var>%varMs</var>
</Int>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act17" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="6"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act18" ve="7">
<code>43</code>
</Action>
<Action sr="act19" ve="7">
<code>38</code>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%varSpeed</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%varMs</Str>
<Str sr="arg1" ve="3">1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act4" ve="7">
<code>319</code>
<Str sr="arg0" ve="3">android.permission.ACCESS_BACKGROUND_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.DRAW_OVERLAYS
android.permission.DISABLE_KEYGUARD
android.permission.SCHEDULE_EXACT_ALARM</Str>
<Str sr="arg1" ve="3"/>
</Action>
<Action sr="act5" ve="7">
<code>37</code>
<coll>false</coll>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%varStatus</lhs>
<op>0</op>
<rhs>Tal på</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act6" ve="7">
<code>366</code>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%gl_latitude
1. Latitude
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%gl_longitude
2. Longitude
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;%gl_coordinates_accuracy
3. Lat, Lon Accuracy
In meters&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;%gl_altitude
Altitude (meters)
In meters&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;%gl_altitude_accuracy
Altitude Accuracy
In meters&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&gt;%gl_bearing
Bearing
in the range 0.0–360.0; Horizontal direction of travel of this device; not related to the device orientation&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6&gt;%gl_bearing_accuracy
Bearing Accuracy
In degrees&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7&gt;%gl_map_url
Google Maps URL
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8&gt;%gl_coordinates
Latitude and Longitude
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9&gt;%gl_satellites
Satellites
The number of satellites used to derive the fix. May not always be available.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES10&gt;%gl_speed
Speed
In meters per second&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES10&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES11&gt;%gl_speed_accuracy
Speed
In meters per second&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES11&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES12&gt;%gl_time_seconds
Time
Time in seconds since EPOCH the location was gotten&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES12&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES13&gt;%gl_time_adjusted_milliseconds
Time Adjusted Milliseconds
Result of adding the current system time with the offset between the system time and the location time&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES13&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES14&gt;%gl_time_gnss_milliseconds
Time GNSS Milliseconds
Time in milliseconds since EPOCH the location was gotten synchrined to the device's location provider&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES14&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES15&gt;%gl_time_milliseconds
Time Milliseconds
Time in milliseconds since EPOCH the location was gotten&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES15&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES16&gt;%gl_time_offset_milliseconds
Time Offset Milliseconds
Time difference in milliseconds between the system time and the location time&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES16&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES17&gt;%gl_time_taken_millis
Time Taken
Time in milliseconds that it took for Tasker to get the location&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES17&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Int sr="arg1" val="30"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Str sr="arg8" ve="3"/>
<Int sr="arg9" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%varSpeed</Str>
<Str sr="arg1" ve="3">(%gl_speed*3600)/1000</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act8" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">%varSpeed</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act9" ve="7">
<code>30</code>
<se>false</se>
<Int sr="arg0" val="0"/>
<Int sr="arg1">
<var>%varMs</var>
</Int>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Img sr="icn" ve="2">
<cls>io.flutter.embedding.android.FlutterActivity</cls>
<pkg>se.tydal.app1409</pkg>
</Img>
</Task>
</TaskerData>

Task: Say Speed

A1: Destroy Scene [
Name: B ]

A2: Show Scene [
Name: B
Display As: Activity
Horizontal Position: 100
Vertical Position: 100
Animation: Scale
Show Exit Button: On
Continue Task Immediately: On
Allow Outside Boundaries: On
Blocking Overlay +: On
Overlay +: On ]

A3: Variable Set [
Name: %varStatus
To: Tal av
Structure Output (JSON, etc): On ]

A4: Variable Set [
Name: %varSpeed
To: 0
Structure Output (JSON, etc): On ]

A5: Variable Set [
Name: %varMs
To: 1
Structure Output (JSON, etc): On ]

A6: Ask Permissions [
Required Permissions: android.permission.ACCESS_BACKGROUND_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.DRAW_OVERLAYS
android.permission.DISABLE_KEYGUARD
android.permission.SCHEDULE_EXACT_ALARM ]

A7: If [ %varStatus eq Tal på ]

A8: Get Location v2 [
Timeout (Seconds): 30 ]

A9: Variable Set [
Name: %varSpeed
To: (%gl_speed*3600)/1000
Do Maths: On
Max Rounding Digits: 1
Structure Output (JSON, etc): On ]

A10: Say [
Text: %varSpeed
Engine:Voice: default:default
Stream: 3
Pitch: 5
Speed: 5
Respect Audio Focus: On ]

A11: Wait [
MS: 0
Seconds: %varMs
Minutes: 0
Hours: 0
Days: 0
Continue Task After Error:On ]

A12: Goto [
Type: Action Number
Number: 7 ]

A13: Else

A14: End If

A15: If [ %varStatus eq Tal av ]

A16: Get Location v2 [
Timeout (Seconds): 30 ]

A17: Variable Set [
Name: %varSpeed
To: (%gl_speed*3600)/1000
Do Maths: On
Max Rounding Digits: 1
Structure Output (JSON, etc): On ]

A18: Wait [
MS: 0
Seconds: %varMs
Minutes: 0
Hours: 0
Days: 0
Continue Task After Error:On ]

A19: Goto [
Type: Action Number
Number: 7 ]

A20: Else

A21: End If