BaGRoS Active Member Licensed User Longtime User Dec 1, 2013 #1 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?
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?
thedesolatesoul Expert Licensed User Longtime User Dec 1, 2013 #2 This is how: Code: Copy Dim Intent1 As Intent Intent1.Initialize("com.lexa.fakegps.START", "") Intent1.PutExtra ("lat","38.8976D") Intent1.PutExtra ("long","-77.8976D") StartActivity(Intent1) Code: Copy Dim Intent1 As Intent Intent1.Initialize("com.lexa.fakegps.STOP", "") Upvote 0
This is how: Code: Copy Dim Intent1 As Intent Intent1.Initialize("com.lexa.fakegps.START", "") Intent1.PutExtra ("lat","38.8976D") Intent1.PutExtra ("long","-77.8976D") StartActivity(Intent1) Code: Copy Dim Intent1 As Intent Intent1.Initialize("com.lexa.fakegps.STOP", "")
BaGRoS Active Member Licensed User Longtime User Dec 1, 2013 #3 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
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)
thedesolatesoul Expert Licensed User Longtime User Dec 1, 2013 #4 No. You have to get them using the GPS object. See the tutorial here: http://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content The on each Location_Changed event, run the intent (I guess). Upvote 0
No. You have to get them using the GPS object. See the tutorial here: http://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content The on each Location_Changed event, run the intent (I guess).
BaGRoS Active Member Licensed User Longtime User Dec 1, 2013 #5 I not GET, I SET fake gps position and move. Upvote 0
thedesolatesoul Expert Licensed User Longtime User Dec 1, 2013 #6 In that case, just set your coordinates and run it. Thats all I know with the information you have provided. Upvote 0
In that case, just set your coordinates and run it. Thats all I know with the information you have provided.
S shmulik taiber Member Licensed User Longtime User Feb 26, 2014 #7 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....
thedesolatesoul Expert Licensed User Longtime User Feb 26, 2014 #8 shmulik taiber said: 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.... Click to expand... 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
shmulik taiber said: 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.... Click to expand... 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