Android Question Send Intent

BaGRoS

Active Member
Licensed User
Longtime User
How I use this:

Code: Copy
Q: Tasker integration (Donate version only)
To start Fake GPS at (38.89765, -77.0365) 
1.Create a new task and entitle it "Start Fake GPS"
2. Add Action -> Misc -> Send Intent
3. Fill fields:
    - Action: com.lexa.fakegps.START
    - Extra: lat:38.89768D
  - Extra: long:-77.0365D
  - Target: Service

To stop Fake GPS use
  - Action: com.lexa.fakegps.STOP
    - Target: Service

You can use variables to specify lat/long as well. Please remember to add "D" to extras to specify it as Double

in B4A?
 
Thx. This code will run at each change of coordinates?

Code: Copy
Intent1.Initialize("com.lexa.fakegps.START", "")
Intent1.PutExtra ("lat","38.8976D")
Intent1.PutExtra ("long","-77.8976D")
StartActivity(Intent1)
 
Upvote 0
Hello .
I need your help .
I'm creating a app which need to communicate with Tasker .
What I need is a way to broadcast or send intent so that tasker can receive an act by it .
how exactly can I do that ? I've tried looking at the forum but failed to implement what I hardly understood .
please forgive a humble novice for the lowly question....
 
Upvote 0
Hello .
I need your help .
I'm creating a app which need to communicate with Tasker .
What I need is a way to broadcast or send intent so that tasker can receive an act by it .
how exactly can I do that ? I've tried looking at the forum but failed to implement what I hardly understood .
please forgive a humble novice for the lowly question....
http://www.b4x.com/android/help/phone.html#phone_sendbroadcastintent
http://www.b4x.com/android/forum/threads/how-to-write-a-tasker-plugin.31136/#content
 
Upvote 0
Back
Top