Tasker send Intent putExtra - Tasker Tips & Tricks

I want to send an intent with longitude and latitude to an app.
The app tells you which options you have to choose in order to receive an intent from tasker.
1st extra: lat:16.65878D
2nd extra: lng:-45.0364D
Target: Service
When I set those settings in Tasker and send an intent to Tasker which triggers to send this intent it works perfectly fine but sending an intent which triggers sending an intent seems pointless to me.
Intent serviceIntent = new Intent("com.incorporateapps.fakegps.ENGAGE");
serviceIntent.putExtra(Intent.EXTRA_TITLE, "lat:16.65878D ");
serviceIntent.putExtra(Intent.EXTRA_TEXT, "lng:45.0364D ")
startService(serviceIntent);
The location app tells me it changed its location but always changes location to lat:0, and lng:0
I tried different options for putExtra like EXTRA_SUBJECT instead of EXTRA_TITLE but nothing works.
Do you guys know what the intent tasker sends looks like or what I am doing wrong?
thanks a lot

Autoshare intercept is your friend…
I found that there might be a line break or new line that i was omitting and it would cause Tasker, and the app to completely crash

Related

[Q] Android Beam - "Tap to Beam" GUI remove

Hi,
I am a newbie in Xposed framework.
I am wondering how to remove "tap to send" from Android Beam during sending messages via NFC in P2P mode communication.
There is listener which waiting for tap.
I think that to do some changed in class P2pLinkManager and method onLlcpActivated(). There is a listener which is waiting for confirmation (i think that it is tap) mEventListener.onP2pSendConfirmationRequested() interface method;
I found information about this method, that to do it I have to use Callback interface.
//Called when a NDEF payload is prepared to send, and confirmation is
//* required. Call Callback.onP2pSendConfirmed() to make the confirmation.
Is it possible to use this callback on event waiting confirmation ? I guess that we can not do it after invoke method onLlcpActivated() because listener is invoked in this method.
Is there another solution than rewrite method onLlcpActivated?

[HELP] How do I get the start and end times (values) of current calendar event?

I want to set up an Alarm at the time the current calendar event ends.
Read the wiki and didn't find an in built variable that stores the end time. Only %CALTITLE / %CALDESCR / %CALLOC were there.
Then I stumbled on to Action > test app feature. But can't figure out how to get it to work. I made this little task to test it out
This is what I tried
Get the end time of current calendar event and store in variable %Time
Flash a message of %Time to make sure value was correctly put in the variable
1 Test App > Set Type - Calendar End(Second), Set Data - %TIME, Store in %Time.
2 Alert > Flash > Set Text to %Time
However, The flash message read "%Time" instead of the end time of current calendar entry.
I don't know what Data meant in test app. I assumed it asked for the time at which calendar entries should be fetched. So I put %TIME to fetch the end time of the calendar entry active at current time.
Also this is what's present in the documentation
Calendar tests: require the time in seconds since the epoch as Data (e.g. use %TIMES, or use the Variable Convert action to convert a date/time into seconds first) and are entered in an array (%var1, %var2 etc), not a plain value, because there may be multiple events at the time specified.
Click to expand...
Click to collapse
this thread is 2 years old, but I thought I'd share my humble opinion....
theoretically you could test calendar to determine the title of the of the event, make a FOR loop and keep testing it until the event is gone.
Other than that, I'd use apps like Business Calendar, which displays a notification for on going event. Presumably Tasker can detect this.

message

Anyone know a profile that can send an automated message (text) when phone is charging?
Profile: Charging (209)
State: Power [ Source:Any ]
Enter: Anon (236)
A1: Send SMS [ Number:<Number goes here> Message:<Message goes here> Store In Messaging Appff ]
sumotori1 said:
Profile: Charging (209)
State: Power [ Source:Any ]
Enter: Anon (236)
A1: Send SMS [ Number:<Number goes here> Message:<Message goes here> Store In Messaging Appff ]
Click to expand...
Click to collapse
What is Anon 236? and I want it for any number.
Anon is an anonymous task attached to the profile, it's just a naming.
I think you need to explain a little better what you are trying to do.
Do you want to reply to an incoming message of your phone is charging?
sumotori1 said:
Anon is an anonymous task attached to the profile, it's just a naming.
I think you need to explain a little better what you are trying to do.
Do you want to reply to an incoming message of your phone is charging?
Click to expand...
Click to collapse
I tried your profile, and it only worked once. Yes. I need to auto reply a text while cell is charging. Whether on my contact list or ANY number
sumotori1 said:
Anon is an anonymous task attached to the profile, it's just a naming.
I think you need to explain a little better what you are trying to do.
Do you want to reply to an incoming message of your phone is charging?
Click to expand...
Click to collapse
I realized what Anon meant, after I hit enter. Lol
Tmobilefan906 said:
I tried your profile, and it only worked once. Yes. I need to auto reply a text while cell is charging. Whether on my contact list or ANY number
Click to expand...
Click to collapse
Alright... Then you need to add one more condition on the profile: Event > Received text SMS
So you will have two conditions on the same profile.
Then replace the number with: %SMSRF
sumotori1 said:
Alright... Then you need to add one more condition on the profile: Event > Received text SMS
So you will have two conditions on the same profile.
Then replace the number with: %SMSRF
Click to expand...
Click to collapse
There...
Yup, I think I his should work perfectly.
Edit: Just saw that you used the variable on the message received. You don't need it there. As soon as you receive the message, the variable gets updated from tasker. It's a built-in variable that gets a value as soon as Tasker starts monitoring messages. So leave sender empty. Otherwise, perfect!
sumotori1 said:
Yup, I think I his should work perfectly.
Edit: Just saw that you used the variable on the message received. You don't need it there. As soon as you receive the message, the variable gets updated from tasker. It's a built-in variable that gets a value as soon as Tasker starts monitoring messages. So leave sender empty. Otherwise, perfect!
Click to expand...
Click to collapse
So, under "number" I could leave blank? The profile I shown ya seems to work as is.
Tmobilefan906 said:
So, under "number" I could leave blank? The profile I shown ya seems to work as is.
Click to expand...
Click to collapse
I'm glad it's working for you!
Yes, it's an optional parameter.
Maybe it works, but I'd suggest to empty it to avoid and undesired behaviour in the future.
sumotori1 said:
I'm glad it's working for you!
Yes, it's an optional parameter.
Maybe it works, but I'd suggest to empty it to avoid and undesired behaviour in the future.
Click to expand...
Click to collapse
Which one...number or sender?
sumotori1 said:
I'm glad it's working for you!
Yes, it's an optional parameter.
Maybe it works, but I'd suggest to empty it to avoid and undesired behaviour in the future.
Click to expand...
Click to collapse
Know a profile to send a text while you're on a call?
Tmobilefan906 said:
Which one...number or sender?
Click to expand...
Click to collapse
Sender
Tmobilefan906 said:
Know a profile to send a text while you're on a call?
Click to expand...
Click to collapse
You need two profiles, one to monitor phone off hook (task to set variable %INCALL to true) and another profile to monitor phone idle (task to set variable %INCALL to false).
sumotori1 said:
Sender
You need two profiles, one to monitor phone off hook (task to set variable %INCALL to true) and another profile to monitor phone idle (task to set variable %INCALL to false).
Click to expand...
Click to collapse
Yea, I did see phone off hook but wasn't sure. Thanks.
sumotori1 said:
Sender
You need two profiles, one to monitor phone off hook (task to set variable %INCALL to true) and another profile to monitor phone idle (task to set variable %INCALL to false).
Click to expand...
Click to collapse
I'm lost. Lol. How would I do that?
This is how I set up mine some time ago. These are two profiles (64 and 68) and each has one enter task (65 and 69 respectively).
Profile: Phone Offhook (64)
Event: Phone Offhook
Enter: Phone Offhook (65)
<Set InCall variable>
A1: Variable Set [ Name:%InCall To:true Recurse Variables: off Do Maths: off Append: off ]
Profile: Phone Idle (68)
Event: Phone Idle
Enter: Phone Idle (69)
<Set InCall variable>
A1: Variable Set [ Name:%InCall To:false Recurse Variables: off Do Maths: off Append: off ]
Once you do that, you will always have access to the variable %InCall for my example which you can monitor (with a profile with a state variable check). If the variable is set to true, you're in a call, otherwise you're not.

Auto Skype Voice Call

Anyone know how to create a task for automatic voice call on skype to a specific number. Pls help, i have tried my best to create one.
I saw this but i didnt know how to use it
Intent skype_intent = new Intent("android.intent.action.CALL_PRIVILEGED");
skype_intent.setClassName("com.skype.raider","com.skype.raider.Main");
skype_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
skype_intent.setData(Uri.parse("tel:+91//phone number"));
startActivity(skype_intent);
https://stackoverflow.com/questions/14293974/skype-call-using-username-in-android
I think you want a "system -> send intent" action filled out something like this:
Code:
A1: Send Intent [
Action: android.intent.action.VIEW
Cat: None
Mime Type:
Data: skype:[user]?call&video=true
Extra:
Extra:
Extra:
Package:
Class:
Target: Activity
In the data field, you should replace "[user]" with the username you are calling.
I don't use Skype so this is a guess and I can't test it. But it should get you going.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

How do I do this text-based task?

Hey guys, I'm trying to automate a task I do often for work. When I get a potential new customer, I receive a standard email with their information in a specific format. For example:
Name - x
Email - y
Phone - z
I am trying to figure out a way to interact with this body of text and automate it as much as possible. I would have to add a new contact with the name, and send out a standardized email as well as a text.
I haven't really made complex tasks like this, so I'm a bit lost as to where to start. I am rooted. I would also like to note that I'm using a proprietary email app (Blackberry Hub+ Inbox), so I think it may be easiest to start off the task by manually copying the body of the text and then somehow triggering the task.
Thanks in advance!
This project is actually a little complex, and it also interested me so, while I usually don't do this, here is a taskernet share.
Requires AutoTools to be installed because a webscreen is used. On install, you must edit actions 15 & 16 in the task. These are variables for the email subject and body.
The profile triggers when data starting with e.g. "Name - John Doe" is copied to the clipboard. Then a button pops up on the right side of your screen and when you tap it the information is entered into a new contact form that you can edit, cancel or save.
A second button becomes available which triggers the composed email action.
The buttons will time out after 30 seconds without triggering the associated task. You can also "fling" them away to dismiss.
The task is expecting each piece of information to be on a separate line like:
Name - John Doe
Email - [email protected]
Phone - (999) 999-9999
The labels for each line are used as variables in the task to identify the associated data. Therefore, the order does not matter. Though if "Name - " is not first, the profile will not trigger. You would need to edit the regex in the profile context.
If, for example, an address is on multiple lines, the task will need to be modified to handle that.
To limit the activation of this profile to only when the data is copied in a specific app such as an email client, add that app as a context in the profile.
The task is heavily commented.
Finally, I add my username into the profile and task names to help avoid the possibly of namespace collisions (when the imported project has the same profile, task or variable names as existing profile, task or variables). The -ktmom can be removed.

Categories

Resources