• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help with a Tasker issue

So I recently purchased Tasker and have set out setting up my Samsung Galaxy S II like a pinball machine. However, I have a bit of an issue with a current task that I have created. Here is what I have...

When I tap on the Cop Recorder app, a text message goes out to three people with a message that I just activated the program. Then, in a separate text message, my GPS coordinates and battery level are relayed to these same three people.

Now, here are a few things that I want to have happen:
1) I want to protect against accidental app activation.
2) Sometimes, I don't want to send a text message notification, like when I just want to record something at random where I am not getting harassed (like a lecture)
3) While Cop Recorder is running, I want to divert phone calls to voicemail.

Now, 1&2 could be solved if I had a prompt that popped up with a set of buttons that said "Record Cop" (which would go ahead with text notifications), "Record Normal" (which would just record without sending out notifications) and "Cancel" (which would cancel the process entirely). Is there a way to do this in Tasker, perhaps with the "Scene" function?

#3 seems to be just a matter of "if Cop Recorder is running, divert to voicemail" but I don't know how to set up that function.

Any help is appreciated. Thanks!
 
The only way I'm aware of to send all calls to voicemail using Tasker is to turn on airplane mode.

I would try using the Menu action, like this:

Code:
<class cl="TaskerData" sr="">
	<tv>1.2.1u1</tv>
	<class cl="Project" sr="proj0">
		<cdate>1335824771795</cdate>
		<name>Menu Test</name>
		<psort>ActiveAlpha</psort>
		<tids>133,136</tids>
	</class>
	<class cl="Task" sr="task133">
		<cdate>1335821347522</cdate>
		<edate>1335826338089</edate>
		<id>133</id>
		<nme>Cop Recorder</nme>
		<pri>10</pri>
		<class cl="Action" sr="act0" ve="3">
			<code>551</code>
			<class cl="StringArg" sr="arg0" ve="3">
				<val>Cop Recorder</val>
			</class>
			<class cl="StringArg" sr="arg1" ve="3">
				<val></val>
			</class>
			<class cl="StringArg" sr="arg2" ve="3">
				<val>IconAndTextMenu</val>
			</class>
			<class cl="IntArg" sr="arg3">
				<val>10</val>
			</class>
			<class cl="IntArg" sr="arg4">
				<val>1</val>
			</class>
			<class cl="ListElementItem" sr="item0">
				<label>Send SMS</label>
				<class cl="Action" sr="action" ve="3">
					<code>41</code>
					<class cl="StringArg" sr="arg0" ve="3">
						<val>1234567890</val>
					</class>
					<class cl="StringArg" sr="arg1" ve="3">
						<val>I'm being hassled again!</val>
					</class>
					<class cl="IntArg" sr="arg2">
						<val>0</val>
					</class>
				</class>
				<class cl="AppIcon" sr="icon" ve="2">
					<icn>2130837563</icn>
				</class>
			</class>
			<class cl="ListElementItem" sr="item1">
				<label>Cop Alert</label>
				<class cl="Action" sr="action" ve="3">
					<code>130</code>
					<class cl="StringArg" sr="arg0" ve="3">
						<val>Cop Alert</val>
					</class>
					<class cl="IntArg" sr="arg1">
						<val>0</val>
					</class>
					<class cl="IntArg" sr="arg2">
						<val>5</val>
					</class>
					<class cl="StringArg" sr="arg3" ve="3">
						<val></val>
					</class>
					<class cl="StringArg" sr="arg4" ve="3">
						<val></val>
					</class>
					<class cl="StringArg" sr="arg5" ve="3">
						<val></val>
					</class>
				</class>
				<class cl="AppIcon" sr="icon" ve="2">
					<icn>2130837563</icn>
				</class>
			</class>
			<class cl="ListElementItem" sr="item2">
				<label>Lecture</label>
				<class cl="Action" sr="action" ve="3">
					<code>137</code>
					<class cl="IntArg" sr="arg0">
						<val>0</val>
					</class>
				</class>
				<class cl="AppIcon" sr="icon" ve="2">
					<icn>2130837598</icn>
				</class>
			</class>
			<class cl="ListElementItem" sr="item3">
				<label>Cancel</label>
				<sel>true</sel>
				<class cl="Action" sr="action" ve="3">
					<code>25</code>
					<class cl="IntArg" sr="arg0">
						<val>0</val>
					</class>
				</class>
				<class cl="AppIcon" sr="icon" ve="2">
					<icn>2130837530</icn>
				</class>
			</class>
		</class>
	</class>
	<class cl="Task" sr="task136">
		<cdate>1335825044809</cdate>
		<edate>1335825168707</edate>
		<id>136</id>
		<nme>Cop Alert</nme>
		<class cl="Action" sr="act0" ve="3">
			<code>41</code>
			<class cl="StringArg" sr="arg0" ve="3">
				<val>1234567890</val>
			</class>
			<class cl="StringArg" sr="arg1" ve="3">
				<val>I'm being harassed again!</val>
			</class>
			<class cl="IntArg" sr="arg2">
				<val>0</val>
			</class>
		</class>
		<class cl="Action" sr="act1" ve="3">
			<code>41</code>
			<class cl="StringArg" sr="arg0" ve="3">
				<val>7894561230</val>
			</class>
			<class cl="StringArg" sr="arg1" ve="3">
				<val>My location is &lt;GPS location here&gt;</val>
			</class>
			<class cl="IntArg" sr="arg2">
				<val>0</val>
			</class>
		</class>
	</class>
</class>

Forgive the XML. Exporting a description of a Menu action doesn't seem to yield the detail necessary to show you what I'm talking about.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones