yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Gear] klau1:
[MENTION=5796803]Orbonis[/MENTION]

Since you are researching the SDK and Gear Manager, is there a way we can have the Gear Vibrate BEFORE the Bluetooth is Out of Range?

Currently, Gear Manager is able to Lock the Phone if the Gear is a couple meters away, but I think it would be safer to have the Gear Vibrate, to notify the user.

f0mey found an intent that's supposed to be sent when this happens:

But I can't seem to get it to work in Tasker.
[Samsung Galaxy Gear] Orbonis:
If you want the Gear to notify you before you get out of range you want to check the distance (or more accurately, signal strength) of the device. Those intents look like they would trigger after the device is out of range and once it reconnects.

What you're looking for isn't Gear specific, it is part of the Bluetooth api.

I am unaware of any Gear specific intents that trigger when the phone and Gear are separated, but I am not using a Gear specific SDK (that is not available to the public). I am using the Samsung Accessory SDK which only offers a direct connection, nothing device specific.
[Samsung Galaxy Gear] doubleohzero:
Can the YOUR_MESSAGE part be %BATT so that it will send your phones battery status to your gear?
[Samsung Galaxy Gear] Orbonis:
That's fine. Tasker translates all the %VARIABLES to normal text before sending them anywhere.

For example I have a task that toggles my Wifi Hotspot. At the end I send this:

response:Wifi hotspot is %HOTSPOT_STATUS.

Where %HOTSPOT_STATUS is a custom variable.
[Samsung Galaxy Gear] Radimus:
ok, next suggestion is getting the GG to speak the response. ;)

How about a message box instead of a toast?

Perhaps having the GG side have a filter where it says "base" to filter out any task that isn't prepended by "GG" for example. Base = all tasks, GG = only tasks named "GG_____"

Thank you for this awesome little utility, this has the potental to far outshine the fairly limited app set that Samsung has.
[Samsung Galaxy Gear] doubleohzero:
Thank you! I live being able to check status of my phone from my watch!
[Samsung Galaxy Gear] Orbonis:
Following from your suggestions I have updated the app :)

No problem :) You may be interested in the latest update!
[Samsung Galaxy Gear] Radimus:
outstanding

[GG]Get Battery Level

1)Send Intent

ACTION:

com.orbonis.gear.tasker.RETURN_DATA

EXTRA;

response:Battery level is %BATT percent

EXTRA:

speak:true
[Samsung Galaxy Gear] doubleohzero:
The latest update works like a champ! Thank you

---------- Post added at 04:25 PM ---------- Previous post was at 04:24 PM ----------

Let's get some more posts of how people are using this incredible app.
[Samsung Galaxy Gear] Brendo:
Looking awesome. Now to find time to play with it...
[Samsung Galaxy Gear] vingar:
Wonderful! :)

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Samsung Galaxy Gear] Brendo:
I installed over old version and when sending a response, tasker on phone says: Failed to execute broadcast task. Required removing old version, then installing latest version

I cloned a task and renamed it, but the favourites list does not reflect the rename
[Samsung Galaxy Gear] Orbonis:
Edit: See below :)
[Samsung Galaxy Gear] Radimus:
I had that. . I rebooted the GG and it worked fine after.
[Samsung Galaxy Gear] fOmey:
I sir LOVE YOU !

I have been waiting for someone to do this for such a long time! Someone get this man a beer. :victory:
[Samsung Galaxy Gear] Orbonis:
For the record there is also a bug with the favourites. All the favourites items in the same project use the same name. My bad, it's a typo, but I gotta go to work now so I'll fix it when I get back.
[Samsung Galaxy Gear] Orbonis:
Thanks haha. That's an honour coming from you. From what I can see you are the go to guy for Gear dev.
[Samsung Galaxy Gear] fOmey:
Your too kind.

You have done something very epic here, I'm loving it.

If I could be ever so bold with a request: The ability to assign a task to a home screen shortcut, which would launch it directly or perhaps even some type of intent we can invoke to launch a certain task directly ?

The first would be more user friendly, although if you decide to go with a intent I would be more than happy with it !

Also I read you dont use my rom,

YOU HAVE TO TRY IT !

With your permissions I plan on including TasGear in future releases.

Keep up what your doing,

great job

so far.. cant wait to see what you put out in future updates.
[Samsung Galaxy Gear] Orbonis:
The homescreen icons is something I wanted to look in to. I'll move it up on my list :) I can do the intents fairly quickly, so I'll do a version with that later today.

Haha I have indeed tried the null rom. I'm a fan of it in general, it's some great work. But I am a bit of a purist when it comes to firmware, I like to improve on the stock :) I want as many people to use my apps as possible without having to modify the firmware. I do hope to maintain support for both though.

That said it would be great if TasGear is included with null. My only concern is that I will continue to test on stock, so I will need a hand testing on null. That hasn't been a problem so far though! :)
[Samsung Galaxy Gear] fOmey:
Good stuff man, Im only teasing :silly:

Anything that works on stock will definitely work on null, although by all means if you would like any help with testing dont hesitate to send me a PM.
[Samsung Galaxy Gear] Radimus:
The next big leap would be to control the GG and the phone at the same time.

"Set phone on silent & set GG on vibrate"
[Samsung Galaxy Gear] Orbonis:
Haha that's stage 2 of my master plan ;) I plan to implement a plugin for tasker to do that very thing. That's a lot more complex though lol.
[Samsung Galaxy Gear] Radimus:
Could you do an "icon" view instead of "list" view?

Could you implement a vibration as a response.. 1 for yes, 2 for no?

Could you export a task as a GG app/favorite so it has it's own icon without having to launch TasGear first?
[Samsung Galaxy Gear] Orbonis:
No, if only because Tasker doesn't offer a way to get the icon that you assign for each task at the moment (Hence why they all have the same icon). If this changes then sure, that'd be cool.

That's probably part of stage 2, but I will have a think about a quicker implementation.

That is by far the most requested feature in this thread. I have no idea, that is something I am currently looking in to.
[Samsung Galaxy Gear] Samuel Sung:
Orbonis. fOmey is the Master of Gear Legends so this means you are know officially in the league of Galaxy Gear Super Heroes! Be proud of yourself!:good:

If you want somebody to try out your new release for testing on Null_ i'm in too. Just write me an PM. I will try and provide you with feedback asap.

latest Null_ Rom on Gear and latest X-Note rom on my note 3...
[Samsung Galaxy Gear] klau1:
[MENTION=5796803]Orbonis[/MENTION]

For some reason, TaskGear says it can not find Tasker on my phone.

I have the non-Playstore Tasker version 4.3 installed

could that be the problem?

I do have External Access Enabled.
[Samsung Galaxy Gear] Orbonis:
Good spot! The non-Playstore version has a different package name. There will be an update soon to fix that :)
[Samsung Galaxy Gear] klau1:
Thank you very much [MENTION=5796803]Orbonis[/MENTION] !!!

Now that my "Find my Device" stopped ringing on my phone, making the phone ring via TasGear is the best gift on earth I can think of right now :D

Btw, would you by any chance have a hunch at what happened?

http://xdaforums.com/showthread.php?t=2711612
[Samsung Galaxy Gear] Santaclauswitz:
Great work of orbonis! I'd gladly buy you a beer for it and stick it in your hand, I live in the black country lol. I've been playing a lot with tasker, autoremote and gmd gesture control combined together. Means I can make a gesture on the phone, trigger a task and have it launch on the phone. I've used for things like simultaneously turning on apps and services that run on both sides such as Bluetooth tether and tablet talk. I think autoremote is sometimes a bit iffy about sending or receiving. Not sure which lol. For autoremote to work I've had to create a task for it phone side to enable Bluetooth listening on connection with the gear. I've tested your app and it doesn't need listening on. It seems to offer a much more stable connection. I'd be glad to test anything for you.
[Samsung Galaxy Gear] brada1983:
Hey m8 I appreciate your work very much, but have I gone blind or did the download link dissapear?
[Samsung Galaxy Gear] Orbonis:
Sorry, I know very little about how the stock "Find my Device" works. I use my own in Tasker :)

I have updated and it should work fine for you now. Gimme a shout if there is a problem!

Added the intent in for now :)

Hmm seems fine, but I have just updated it so it may need a refresh :)

Here is a direct link to the attachment.

http://xdaforums.com/attachment.php?attachmentid=2677341&d=1397067789
[Samsung Galaxy Gear] brada1983:
Thx M8 modding time starts NOW!!! :laugh::laugh::laugh::laugh:
[Samsung Galaxy Gear] klau1:
Yes!!! This is working now!!!! Woohoo!! Thanks a lot [MENTION=5796803]Orbonis[/MENTION]:highfive:
[Samsung Galaxy Gear] vingar:
Orbonis i have a problem with perform task...! (nb:with M2d app i dont have problem)

change with data sample.

Action:com.orbonis.gear.tasker.PERFORM_TASK

Extra:*task:TASK_NAME

Target:Broadcast Receiver

thanks Friend!

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Samsung Galaxy Gear] Orbonis:
Sorry, I'm not sure what you mean. Is the task not running when you send the intent?

Are you sending the intent on the host(phone/tablet) or the Gear?
[Samsung Galaxy Gear] vingar:
send intent from gear to note3.

on note have a task (name:cucina).

on gear create an intent task

Action:com.orbonis.gear.tasker.PERFORM_TASK

Extra: task:cucina

Target:Broadcast Receiver

Where is the error?

task not start

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Samsung Galaxy Gear] Orbonis:
Hmmm... how very odd. Try this one:

https://dl.dropboxusercontent.com/u/28303461/TasGear-Test.apk

And change the action to:

com.orbonis.gear.tasker.consumer.PERFORM_TASK
[Samsung Galaxy Gear] fOmey:
I can confirm vingar, attempting to use the broadcast intent using adb shell on my gear and sadly its not working:

shell@android:/ $ am broadcast -a com.orbonis.gear.tasker.PERFORM_TASK -e "task" "Test"
ar.tasker.PERFORM_TASK -e "task" "Test" <
Broadcasting: Intent { act=com.orbonis.gear.tasker.PERFORM_TASK (has extras) }
Broadcast completed: result=0

It seems to fire the intent, although the task is not being fired on my phone. I have also attempted to use tasker on my gear to send the intent.. no luck there either.

Iv simply created a task called "Test" on my phone that creates a popup.

EDIT:

Tried the test APK you provided, same situation... I was watching the logcat on my phone whilst testing, doesn't seem like any activity from orbonis.
[Samsung Galaxy Gear] vingar:
dont work!

nb:

With M2d by pacosal work.

with this configuration

from note3: create a task Profile with intent receiver

from gear: create a task with send intent.

with this metod i can create a home shortcut to gear launcher (nova).and work 100%.

PROFILE NOTE3

GEAR TASK

I want same result with your app.

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Samsung Galaxy Gear] Orbonis:
Urgh... okay I will have to give it some more thought :\

[MENTION=1620550]fOmey[/MENTION], the adb broadcast will not trigger RETURN_DATA or PERFORM_TASK on the phone either for some reason, though they work fine when sent via Taskers "Send Intent" action. Any thoughts on to why that is?
[Samsung Galaxy Gear] fOmey:
In theory they behave the same, I believe tasker literally fires that command for the intent action.

It could be a formatting issue of the adb broadcast perhaps.. although I tried both "task:" & "task"..

I'll do a few more tests in the meantime.
[Samsung Galaxy Gear] Orbonis:
Great Scott I think I have it!

https://dl.dropboxusercontent.com/u/28303461/TasGear-Test.apk

Give that one a try, tested through adb broadcast

com.orbonis.gear.tasker.PERFORM_TASK

(when sending on the phone/tablet)

com.orbonis.gear.tasker.consumer.PERFORM_TASK

(when sending on the Gear)

(Your syntax was correct [MENTION=1620550]fOmey[/MENTION])

Edit: The RETURN_DATA also works now... though I can't explain why that didn't work haha.
[Samsung Galaxy Gear] fOmey:
I have tested & it semi-works...

The situation:

After firing a task using the app on the gear, shortly after that the broadcast intents work...

Although once you wait a little while, it will stop working...

Perhaps because the bluetooth session connection is being closed ? Not sure..
[Samsung Galaxy Gear] Orbonis:
That's possible. The client side of the app was never intended to run permanently like the host side... I will have to look into that.
[Samsung Galaxy Gear] chuman72486:
I'm curious if this app can go a few steps further. What my hope is an app that I can use to send a fullscreen notification to the Gear, similar to the Gear Manager notifications that automatically wake the watch and display an abridged version of the notifications on the phone.

Ideally I'd want something that could be a Tasker plugin that can be added to a Task rather than a Send Intent function with the options of an icon, title, and main text, a bit like how Jellybean expanded notifications look.

I'd like to be able to make custom notifications to the Gear rather than just letting Gear Manager relay regular Tasker or AutoNotification notifications to the Gear, where it gets cut short and always shows the Tasker/AutoNotification app icon rather than the notification's icon.

The toast on the Gear is helpful for small messages, but it doesn't wake the Gear if the screen is off and doesn't have the option to make a sound/vibrate rather than speaking, so unless you know the toast is coming, you would never know the phone tried to tell me something.

I also notice the toast won't appear at all if I haven't done anything on TasGear on the Gear. If I run a task from TasGear on the Gear, then it will receive toasts from the phone for a short time, but then it doesn't work again until I make TasGear run another task.
[Samsung Galaxy Gear] Orbonis:
Most of what you mentioned is planned for future updates. The intention would be to create a plugin for Tasker and introduce full integration.

I am aware of the disconnection after the app is inactive for a while. The app is in beta and a lot of these features are being added as people mention them :)

Thanks for your interest and the notifications is a great idea. I will definitely add that in as one of the first Tasker actions :)
[Samsung Galaxy Gear] chuman72486:
Maybe the Gear-side TasGear can periodically send a "ping" to the phone to keep the connection alive? Basically just an empty version of whatever message is sent to trigger Tasker tasks on the phone that the phone-side app will discard rather than pass anything to Tasker.

In order to not drain battery, you'd need to figure out when the session normally times out and fire the ping only right before it times out with the smallest amount of data so very little power is used on the CPU or the Bluetooth radio.
[Samsung Galaxy Gear] Orbonis:
Nice idea, but it is just a matter of moving the connection so it runs purely on the service instead of the activity. Should be an easy fix I just haven't had time yet :) Maybe tomorrow.
[Samsung Galaxy Gear] doubleohzero:
I don't know if this is a bug or user error but sometimes when i go to run a task from TasGear it won't run unless i close out tasgear and then refresh it.
[Samsung Galaxy Gear] joey7855:
Great App!

I just installed this on both my wife's and my gears. We've only been using it for about an hour and love it! Thanks!
[Samsung Galaxy Gear] Orbonis:
Yeah it's just a thing Tasker does. You have to back out of Tasker for it to "save" the task data.

EDIT: You should be able to hit the refresh button as well. This should also only ever happen after you have first created the task or after you have edited the task.
[Samsung Galaxy Gear] cibianr:
I only see the Base Project

Hi,

I have just installed it and it is great!!! Thank you!!!

I had been working with only one project, but today I added two more projects and I am only able to see the Base Project in the TasGear. Has someone experienced this?
[Samsung Galaxy Gear] Orbonis:
Hit the refresh button, then they should appear in the list on the bottom left. Just tap Base to open it.

If they still don't appear make sure you back out of Tasker on your phone first. This seems to update the Task data.
[Samsung Galaxy Gear] cibianr:
Thank you! I have done both, but they still don't appear.
[Samsung Galaxy Gear] Orbonis:
Hmm... that's interesting. Must be a problem with the Tasker API.

Try restarting your phone/Gear. See if that gets them to update :)
[Samsung Galaxy Gear] Orbonis:
Right. This is a new and improved version of TasGear. It will keep itself active in the background without using a noticeable difference in battery power (I consider myself a heavy user and didn't notice a difference at all over a 14 hour period).

However I have had to rewrite the service for the Gear. I have learned much, but I'm still learning and for this reason I am not updating the main thread just yet.

Instead I'm gonna post it here. It's a test build, so only download it if you are willing to be a guinea pig and report back ;)

The app should act in the usual way with a few key differences:

Sending a response to the Gear should wake the screen and display the information (including voice).

You should now be able to send intents to the Gear, even after prolonged periods of inactivity.

TasGear v1.0.5a

People who may be interested in testing: [MENTION=4293541]chuman72486[/MENTION] [MENTION=4560269]vingar[/MENTION] [MENTION=1620550]fOmey[/MENTION]

Good luck ;)

EDIT: You will have to start the app on the Gear at least once to make the connection. I don't see a way around this at the moment, but I'm sure there is.
[Samsung Galaxy Gear] doubleohzero:
I'd like to test it too. If you don't mind.
[Samsung Galaxy Gear] Orbonis:
Of course :) All are welcome as long as they are aware that is may break horribly haha.
[Samsung Galaxy Gear] doubleohzero:
Ok installed it. Launched it. Won't load. Goes into a crash loop that I can't get out of unless I reboot my gear. Problem continues after reboot.

I thought to Uninstall it and reinstall but it causes gear manager to hang when I tried.

Oh and I originally installed it over the previous version.
[Samsung Galaxy Gear] Orbonis:
... well that is odd.

I updated the link, try downloading and reinstalling.
[Samsung Galaxy Gear] doubleohzero:
Still doing the same thing. Is it cause I'm running null? Maybe another null user could verify.
[Samsung Galaxy Gear] Orbonis:
God I hope not haha. [MENTION=1620550]fOmey[/MENTION]? Can you verify this?
[Samsung Galaxy Gear] Radimus:
TasGear had stopped...

Rebooted each device. ..
[Samsung Galaxy Gear] fOmey:
Hold on lads.. lets take a look.
[Samsung Galaxy Gear] Orbonis:
Gonna need some more info.

You using v1.0.4 or v1.0.5?
[Samsung Galaxy Gear] Radimus:
Sorry, I hate that when others do that. ..

1.0.5 the test version
[Samsung Galaxy Gear] fOmey:
Did you uninstall your previous version before installing the test version ?

I'm not getting any FC's on the 1.0.5 test version.
[Samsung Galaxy Gear] Radimus:
I didn't uninstall.
[Samsung Galaxy Gear] fOmey:
Hmm, It doesnt matter actually...

I am getting a FC after I let both devices sit for a while, sadly I don't have my gear cradle with me so I cant provide a logcat right now..
[Samsung Galaxy Gear] Orbonis:
Cheers for the info. I'm gonna try a different approach. Gimme a few minutes to get something together.
[Samsung Galaxy Gear] doubleohzero:
Does it matter which version of gear manager we have? I'm on 1.6.1327. I haven't updated to 2 yet.
[Samsung Galaxy Gear] Orbonis:
Haven't updated myself yet. But I don't think that will effect it as I am not using Gear Manager for the communication.

That said I'm not 100% certain the Samsung SDK doesn't use it (though I find it unlikely).
[Samsung Galaxy Gear] Orbonis:
Okay guys, let's try this one.

TasGear 1.0.5b

[MENTION=1620550]fOmey[/MENTION] [MENTION=5650742]doubleohzero[/MENTION] [MENTION=372607]Radimus[/MENTION]
[Samsung Galaxy Gear] fOmey:
OK, Downloaded & installed.

First initial firing of tasks worked fine, I let it sit for a few moments it seems to work fine..

I then let it sit for two minutes and once again it worked fine ! Nice work.

This was all done using the app on the gear.

I will now test the intent, although the intent at the moment is not working tasker installed on my gear.. Could you please provide the intent details once more.

EDIT: My mistake I had the intents setup wrong due to previous testing.. I have just tried the intent and it works fine.. will let them both go into deep sleep and attempt to fire using the intent !

Everything seems like everything is working as intended ! Very nice work bud..

EDIT 2: I let the devices go into deep sleep, it seems that the intent did not work and TasGear FC's. :(
[Samsung Galaxy Gear] Radimus:
I can't even get that far. FC on start
[Samsung Galaxy Gear] Orbonis:
Dammit! I have no idea why it won't start for you Radimus. I can only suggest a full reinstall, unless you can get me the logcat?

fOmey, how are you testing the intent? I seem to be able to send the intent (using adb) from the host and client without any issue :\

I also don't get a FC on boot.

It's possible my device is never entering a deep sleep. Is there a way to force the state?
[Samsung Galaxy Gear] Orbonis:
Out of curiosity, can you try this?

TasGear 1.0.5c
[Samsung Galaxy Gear] fOmey:
Downloading..

EDIT: Initial testing works fine both app & intent worked after installing the update.

I let both devices sit for a minute, the intent did not work & the app FC'd.

I am testing the intent using tasker, as I dont have my gear cradle at the moment..
[Samsung Galaxy Gear] Orbonis:
*sigh* Okay. I'm tired, so I'm gonna start this thing again tomorrow.

Thanks a lot for your help guys, hopefully this thing will be sorted out soon.
[Samsung Galaxy Gear] kashortiexda:
Apk from OP working flawlessly for me Null Rom and DN3 4.4.2

I'll leave this here for others to learn about intents and open possibilities. ..

http://developer.android.com/reference/android/content/Intent.html

and...

http://xdaforums.com/showthread.php?t=2489449
[Samsung Galaxy Gear] Orbonis:
Okay, so I feel like I'm gonna have to push this to the foreground. I've tried leaving it in the background, but deep sleep seems to insist on killing it without remorse.

[MENTION=1620550]fOmey[/MENTION], can you give this a try for me? TasGear 1.0.5c

Ongoing tests myself, but it never hurts to have a second set of eyes.

Others are welcome to test as usual, but remember this version my crash unexpectedly.
[Samsung Galaxy Gear] kashortiexda:
^^ constant FC on startup :(
[Samsung Galaxy Gear] Orbonis:
Hmmm... this seems to consistently happen to certain users. Can you get me a logcat for the device?