
Nichts
Philosoph
- 3.769
- Themenstarter
- #21
So ich habe noch am recherchiert und etwa anders als Basis genommen, wahrscheinlich hätte man ein paar Dinge einfacher machen können aber es tut was es soll, damit Leute die sowas suchen nicht so frustriert werden wie ich, hier eine funktionierende Lösung:
<TaskerData sr="" dvi="1" tv="6.4.15">
<Task sr="task19">
<cdate>1743335598524</cdate>
<edate>1743342595644</edate>
<id>19</id>
<nme>File Send Test</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%app_package</Str>
<Str sr="arg1" ve="3">com.adobe.lrmobile</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="act1" ve="7">
<code>412</code>
<Str sr="arg0" ve="3">DCIM/Camera/Raw</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">%file_paths</Str>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act10" ve="7">
<code>664</code>
<Str sr="arg0" ve="3">mtm</Str>
<Str sr="arg1" ve="3">MimeTypeMap</Str>
<Str sr="arg2" ve="3">getSingleton
{MimeTypeMap} ()</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act11" ve="7">
<code>664</code>
<Str sr="arg0" ve="3">%mime</Str>
<Str sr="arg1" ve="3">mtm</Str>
<Str sr="arg2" ve="3">getMimeTypeFromExtension
{String} (String)</Str>
<Str sr="arg3" ve="3">ext</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act12" ve="7">
<code>43</code>
</Action>
<Action sr="act13" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%mime</Str>
<Str sr="arg1" ve="3">image/*</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="act14" ve="7">
<code>38</code>
</Action>
<Action sr="act15" ve="7">
<code>664</code>
<Str sr="arg0" ve="3">my_intent</Str>
<Str sr="arg1" ve="3">Intent</Str>
<Str sr="arg2" ve="3">new
{Intent} ()</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act16" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">my_intent</Str>
<Str sr="arg2" ve="3">setAction
{Intent} (String)</Str>
<Str sr="arg3" ve="3">android.intent.action.SEND_MULTIPLE</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act17" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">my_intent</Str>
<Str sr="arg2" ve="3">setType
{Intent} (String)</Str>
<Str sr="arg3" ve="3">%mime</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act18" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">my_intent</Str>
<Str sr="arg2" ve="3">putParcelableArrayListExtra
{Intent} (String, ArrayList)</Str>
<Str sr="arg3" ve="3">android.intent.extra.STREAM</Str>
<Str sr="arg4" ve="3">uris</Str>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act19" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">my_intent</Str>
<Str sr="arg2" ve="3">addFlags
{Intent} (int)</Str>
<Str sr="arg3" ve="3">my_intent.FLAG_ACTIVITY_NEW_TASK</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act2" ve="7">
<code>664</code>
<Str sr="arg0" ve="3">uris</Str>
<Str sr="arg1" ve="3">ArrayList</Str>
<Str sr="arg2" ve="3">new
{ArrayList} ()</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act20" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">my_intent</Str>
<Str sr="arg2" ve="3">addFlags
{Intent} (int)</Str>
<Str sr="arg3" ve="3">my_intent.FLAG_GRANT_READ_URI_PERMISSION</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act21" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">my_intent</Str>
<Str sr="arg2" ve="3">setPackage
{Intent} (String)</Str>
<Str sr="arg3" ve="3">%app_package</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act22" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">CONTEXT</Str>
<Str sr="arg2" ve="3">startActivity
{} (Intent)</Str>
<Str sr="arg3" ve="3">my_intent</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act3" ve="7">
<code>39</code>
<Str sr="arg0" ve="3">%file_path</Str>
<Str sr="arg1" ve="3">%file_paths()</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act4" ve="7">
<code>365</code>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%content_uri
Content URI
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0></StringArray></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>
<Str sr="arg1" ve="3">FilePathToContentUri(%file_path)</Str>
</Action>
<Action sr="act5" ve="7">
<code>664</code>
<Str sr="arg0" ve="3">parseduri</Str>
<Str sr="arg1" ve="3">Uri</Str>
<Str sr="arg2" ve="3">parse
{Uri} (String)</Str>
<Str sr="arg3" ve="3">%content_uri</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act6" ve="7">
<code>664</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">uris</Str>
<Str sr="arg2" ve="3">add
{boolean} (Object)</Str>
<Str sr="arg3" ve="3">parseduri</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act7" ve="7">
<code>40</code>
</Action>
<Action sr="act8" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%file_paths(#)</lhs>
<op>8</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="7">
<code>664</code>
<Str sr="arg0" ve="3">ext</Str>
<Str sr="arg1" ve="3">MimeTypeMap</Str>
<Str sr="arg2" ve="3">getFileExtensionFromUrl
{String} (String)</Str>
<Str sr="arg3" ve="3">%content_uri</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Str sr="arg9" ve="3"/>
</Action>
</Task>
</TaskerData>