smartmadsoft
 | Forums | Reply | Search | Statistics |
Android smartmadsoft / Forum / Android /

OpenWatch Android API for developers v1.2 (20101020)

 Page Page 1 of 3:  1  2  3  »» 
Author smartmadsoft
Admin
#1 | Posted: 25 Nov 2009 20:04 | Edited by: smartmadsoft
Intents that are broadcasted on button press by OpenWatch

com.smartmadsoft.openwatch.command.BUTTON_FF
com.smartmadsoft.openwatch.command.BUTTON_RW
com.smartmadsoft.openwatch.command.BUTTON_PLAYPAUSE
com.smartmadsoft.openwatch.command.BUTTON_VOLUME_UP
com.smartmadsoft.openwatch.command.BUTTON_VOLUME_DOWN

Intents handled by OpenWatch

com.smartmadsoft.openwatch.action.ENVELOPE
com.smartmadsoft.openwatch.action.TEXT
com.smartmadsoft.openwatch.action.VIBRATE

Extras (String):
line1
line2

---------------------------------------

OpenWatch v0.4.3 adds support for displaying graphics.

Intents handled by OpenWatch

com.smartmadsoft.openwatch.action.GRAPHICS

Extras:
data - int array, size 96x16, 1D dimension, required
time - defines how long to keep the graphics on the watch, in milisec (7000 is default)

Warning! When any graphics is displayed, the multimedia buttons are not working. The only option users have is to cancel the graphics by pressing a top right button two times.

---------------------------------------

OpenWatch v1.1.2 adds support for status messages.

Intents that are broadcasted by OpenWatch

com.smartmadsoft.openwatch.status.WATCH_CONNECTED
com.smartmadsoft.openwatch.status.WATCH_DISCONNECTED

New extra for com.smartmadsoft.openwatch.action.*
Add "force1line" key to force single line display.
Author Joe
Forums Member
#2 | Posted: 4 Dec 2009 18:44
Hey, thanks so much for building this. I just got my MBW-150 and I'm starting to play around with it and my Droid. However, I'm having some issues getting all of the intents to work.

The ENVELOPE intent does seem to work:

> ./adb -d shell am broadcast -a com.smartmadsoft.openwatch.action.ENVELOPE
(watch buzzes 3 times, shows envelope icon)

However, the other ones I've tried don't seem to have any effect on the watch:

> ./adb -d shell am broadcast -a com.smartmadsoft.openwatch.action.VIBRATE
(watch does nothing)

> ./adb -d shell am broadcast -a com.smartmadsoft.openwatch.action.TEXT -es line1 "Hello World"
(watch does nothing)

I'm using OpenWatch v0.3.1, and the test function in the app does display the test text. Any thoughts on what I'm doing wrong?
Author smartmadsoft
Admin
#3 | Posted: 4 Dec 2009 18:54
I implemented this feature in a hurry and tested just the Envelope intent. I see the problem now - intent receiver for the 2 remaining intents is not set. I will fix this in the next release (probably this weekend).

BTW: You can add the line1/line2 extras to the Envelope intent too.
Author Joe
Forums Member
#4 | Posted: 4 Dec 2009 19:06
Heh, I figured it was something like that--looking forward to trying out the updated version.

You're right, the text extras do work with the ENVELOPE intent. For anyone else who wants to try it, it's:

> ./adb -d shell am broadcast -a com.smartmadsoft.openwatch.action.ENVELOPE -e line1 "Hello World" -e line2 "What time is it?"
Author smartmadsoft
Admin
#5 | Posted: 5 Dec 2009 22:26
Should be fixed in v0.3.2.
Author abliss
Forums Member
#6 | Posted: 11 Dec 2009 22:56
Hi, just got my MBW-150 on Joe's advice and am trying it out with my droid.

I have SmartWatch 0.3.2 and found that Vibrate does not cause vibrations when it has line1 extras. Vibrate alone with no extras does vibrate the watch, and Vibrate with extras does show text.
Author smartmadsoft
Admin
#7 | Posted: 12 Dec 2009 21:16
abliss
This will be fixed in the next release.
Author ljmarkus
Forums Member
#8 | Posted: 1 Aug 2010 10:06
Hello..

i using Tasker for my Desire and under the Point Component Intent can i type the Class, Package, Data and Extra.

What do I need to enter a text appears on my Clock?


Thanks,
Markus
Author handydroid
Forums Member
#9 | Posted: 15 Aug 2010 23:54
hi Markus

I have just released this plug-in for Locale on the market, I think Tasker can use locale setting plug-in you might want to give it a try.

http://www.appbrain.com/app/org.handydroid.openwatch.locale.message
Author mbirth
Forums Member
#10 | Posted: 9 Oct 2010 13:02 | Edited by: mbirth
You can create an Action Intent in Tasker (found under "Misc." category). Put in the following values:

Action: com.smartmadsoft.openwatch.action.TEXT (or .VIBRATE)
Cat: None
Data: <leave empty>
Extra: line1:<your first line text here>
Extra: line2:<your second line text here>
Target: Broadcast Receiver

You can even use variables in the Extras.

But the next version of Tasker will support variables in Locale-plugins natively. So then you can use handydroid's plugin with variables.
Author mbirth
Forums Member
#11 | Posted: 9 Oct 2010 13:46
Is there any way of switching from 2-line display to single line display via an Action?
Author smartmadsoft
Admin
#12 | Posted: 9 Oct 2010 15:39
mbirth
There's no option for that in an intent. Maybe the best solution would be adding another extra "singleline" for users with one line output text display. Currently "line2" is just ignored if the user has one line text display on, only "line1" is displayed.
Author mbirth
Forums Member
#13 | Posted: 9 Oct 2010 15:48
smartmadsoft:
Maybe the best solution would be adding another extra "singleline" for users with one line output text display.

My intention was to make the watch show short messages (I send via Tasker) as one line scrolling text (e.g. "Phone battery low!") but be able to show longer messages in 2 lines. The desired behavior should be switchable from the sender, not automatically by OpenWatch. Also the rest of the OpenWatch features shouldn't be touched by this.

btw: I'm currently playing around with Tasker and writing a web-service so that my PC at home can send notifications to my watch over the Internet.
Author handydroid
Forums Member
#14 | Posted: 9 Oct 2010 18:52
Hi
I have asked the tasker devs to consider supporting the Openwatch Button press broadcasts

http://groups.google.com/group/taskerdev/browse_thread/thread/b4358546fd2b0b06

hope you don't mind. Locale user can use my locale openwatch BTN plugin but tasker users could not use it as it does not support condition plugins

Thanks Stephen
Author mbirth
Forums Member
#15 | Posted: 9 Oct 2010 18:56
I just starred your request in the Tasker group.

And I finished the first version of my notification webservice. Read everything about it in my Wiki. This watch is fun!
 Page Page 1 of 3:  1  2  3  »» 
Android smartmadsoft / Forum / Android / OpenWatch Android API for developers v1.2 (20101020) Top
Your Reply Click this icon to move up to the quoted message


To prove that you are a human rather than spambot, please answer the following question:
How much is three divided by one?
» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.
 
  smartmadsoft / Forum Powered by Forum Script miniBB ®