yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] BigDanInTX:
Taken from the sample:

//Hour needle
context.save();
angle = (hour - 3) * (Math.PI * 2) / 12; //Indicate the current time
context.rotate(angle);
context.beginPath();
context.lineWidth = 4;
context.lineJoin = "round";
context.moveTo(-15, -5);
context.lineTo(-15, 5);
context.lineTo(clockRadius * 0.4, 0);
context.closePath();
[B] context.strokeStyle = "#333";[/B]
context.stroke();
context.restore(); //Initialize state

//Minute needle
context.save();
angle = (minute - 15) * (Math.PI * 2) / 60;
context.rotate(angle);
context.beginPath();
context.moveTo(-15, -4);
context.lineTo(-15, 4);
context.lineTo(clockRadius * 0.7, 1);
context.lineTo(clockRadius * 0.7, -1);
context.fill();
context.restore();

//Second needle
context.save();
angle = (seconds - 15) * (Math.PI * 2) / 60;
context.rotate(angle);
context.beginPath();
context.moveTo(-15, -2);
context.lineTo(-15, 2);
context.lineTo(clockRadius * 0.7, 0);
[B] context.fillStyle = "#f00";[/B]
context.fill();
context.restore();

The line with .strokeStyle... Think of this as your pen, drawing the lines.

The line with .fillStyle... Think of this as your paint bucket, filling in what you've outlined.

What's shown is the 3 number style. I prefer to use the 6 number style for more granularity.

#FFF (or #FFFFF) for pure white, #000 (or #000000) for pure black.

The first set controls Red, the second set controls Green, the third set controls Blue.

Adjust these colors accordingly.
[Samsung Gear 2] waywardzeek:
Weird issue, when I add the line of code below in the source tab of config.xml I get the follow error when I try to launch the app. IF I remove the tizen:category... it runs, but not as a watch face. Any thoughts?

thanks

Zeek

NLS missing message: LAUNCH_END_WITHOUT_RUN in: org.tizen.common.launch.LaunchMessages

<tizen:category name="com.samsung.wmanager.WATCH_CLOCK"/>
[Samsung Gear 2] ice09:
Here is my "first" clock face if anyone is interested :)

EDIT: I've removed the attachments as I've updated the files in a newer post
[Samsung Gear 2] Breach:
Looks good! ;) Classy
[Samsung Gear 2] ice09:
Thanks :)

I tried to keep it clean and simple. I've also got the battery to turn green while charging, but I'm having an issue getting the second hand to be "hollow" like the other two...

If anyone knows how to check the bluetooth state and / or notifications , please let me know :D
[Samsung Gear 2] ice09:
I've updated my clock with the following:

1) The hour hand now moves like most analog clocks instead of always pointing to the current hour

2) The digital time can toggled on / off by tapping the middle of the screen (it's a 60px by 60px area)...

3) The battery level will turn red when there is less then 20% power, and green while charging.

4) Fixed the bug that prevented Sunday from being shown
[Samsung Gear 2] CheeseTank:
Hi all, can anyone answer for my questions? :confused:

1) Is there any way to set up a transparent background for my clock?

2) Or maybe there is a way to obtain current background image path?

3) And how to realize additional functionality for displaying some info in bottom panel like in default clock? May be some samples available?
[Samsung Gear 2] Breach:
I am unsure about a transparent background. I know that you can use an animated gif to make an animated background. As far as displaying some info at the bottom, you can add java and edit the html file to add to clock face.

Rick

.

.
[Samsung Gear 2] CheeseTank:
Rick, thanks, but animated image isn't a solution, I want to use current background image which user was set from settings.

Regarding additional blocks - do you know how to launch some other application by tap on a clock action?
[Samsung Gear 2] onedirection:
How to change needle and 4 dots

Simple Q!

How to change - I mean mod the needle and the 4 grey-dots on the first emu?? I want to replace it with a pic or maybe with a pic. Need answer asap! Thx in advance!
[Samsung Gear 2] Andaluz04:
Some help (:

Hey man, nice tutorial though a bit hard for a noob like me...

I've got an awesome design I just can't get out of my head, but it requires some skill for the programming part.

I'll leave a poor drawing of it and it would be really great if you could make it come true.

View attachment 3083925
[Samsung Gear 2] Splash91:
Tizen Analog Sample App

Can anyone tell me in the Analog Clock and Clock Widget Sample templates, what file contains the code which creates the watch hands/frames, and how do you make your own custom hands/frames?
[Samsung Gear 2] jhonjey66:
Hi folks.

Do you know the Gear Watch Designer?

http://developer.samsung.com/gear/design/watch-designer

It is a tool to develop rapidly smart faces for the Gear S2...

Attached I grabbed the files that this tool generate during the build operation: any idea on how to elaborate this files with the Tizen SDK?

In the example I made a "watch" with only the background... very simple, just to understand if it is possible the manipulation with the SDK...

Thanks to all

GS

Italy
[Samsung Gear 2 Neo] markbc01:
Thank you for this .. . it is a great way for us to start!

I actually would like to make a 24 hour analogue watch face --something like military time or international time, but to start off this will be very helpful!

I noticed when I DL the Tizen SDK, I thought it asked me to install Java --how much of that do I need to install (there seem to be several Java options for my Windows 7 64bit system! Or, can I skip that?

sorry to bug you with such a basic question, but I am trying to get it right step-by-step! :good:
[Samsung Gear 2 Neo] neonfreak20:
Awesome, Thanks for taking the time to make this :victory:
[Samsung Gear 2 Neo] Breach:
I already had Java JDK installed, but you can grab it here if you need it...

http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html

Once installed, you will probably want to put it into your Environmental Variables.. Just right click on the "This PC" icon on your desktop. Then click 'Properties' and then 'Advanced System Settings', then click the [Enviromental Variables] button. Scroll down until you find PATH. It should have a several paths, add the following to the beginning... C:\Program Files\Java\jdk1.7.0_51\bin; (Note that this path will depend on where you installed the Java JDK and the version)

You can save it. To test it.. Open a CMD Prompt and type javac and if you get an error, something didn't work.

It was my pleasure. I am learning too.. but I figured I would share what I learn so that we can all learn together.. :)

.

.
[Samsung Gear 2 Neo] ex-28:
thank you soo much for this , had this installed for a while now been playing around a bit but this has been so helpful.

only problem I have is my background image isn't showing up ,

I have background: url(../mywatchface.jpg); set in the style.css and pasted "mywatchface.jpg" into "mywwatchface" project but when I set the above and hit save then the green start, it loads however the watch emulator that is open doesn't change , and I have no errors in the problems box.
[Samsung Gear 2 Neo] Restless-rooster:
I was having this issue also, and it may not be the answer to your issue but to the right of the play button (to run it on the emulator), there is a dropdown. Make sure you select the one you want to run. By default, mine kept running the same one.
[Samsung Gear 2 Neo] ex-28:
thanks for the reply but I wonder if this has something to do with it .

when the emulator opends , I get an error see screen shot.

compositor warning your screen does not support OpenGL.

Falling back to software engine.

when I click ok I get the watch face but still no background under the play button menue its set to mywatchface

im running windows 7 Enterprise 32 bit.

trying to good it but all I can come up with is for Linux users.
[Samsung Gear 2 Neo] Breach:
Is the image the proper size (320 x 320)? Are you sure you saved it as a jpg? (If you save as a png or something else, you will need to edit the background url.) Are you sure the mywatchface.jpg is in the root of your project and not in the css or js folder? Are you sure there is no typo in your style.css?

I noticed that in your comment, there is a typo in your project name. Is there a typo in your project name or only in your comment above?
[Samsung Gear 2 Neo] ex-28:
type only in comment as far as I see. and I belive the image is in the correct folder.

mywatchface.jpg looking at it it was at 320x240 changed it now to 320x320.

testing in a second here

yup same results :( wont load the background I just see the black background with a white digital watch and the date under it as in screenshot.

sorry I attached screenshot now forgot it.
[Samsung Gear 2 Neo] Breach:
What are the settings in your emulator?

What version of the Tizen for Wearables IDE are you running? Version : 1.0.0b1 ?
[Samsung Gear 2 Neo] ex-28:
just clock and display
[Samsung Gear 2 Neo] ex-28:
helps if I select the watch face I guess.,. lol now I get it , thank you soo much:)
[Samsung Gear 2 Neo] ex-28:
running

Version : 1.0.0b2

Build id : 20140411-1449
[Samsung Gear 2 Neo] Breach:
Glad we got it sorted out. Enjoy.. After you get it tweaked the way you like, give it a custom name and feel free to share your watchface.wgt here for everyone to try out. ;)
[Samsung Gear 2 Neo] ex-28:
maybe add that to the op that once you make the changes you have to go into settings on the emulator and select the new watch face , lol , I just had a brain fart moment there. but totally forgot and maybe helpful for new users :)
[Samsung Gear 2 Neo] Breach:
Done. :)
[Samsung Gear 2 Neo] ex-28:
only problem I had I was getting an error so I deleated my project compleatlly and started over , but its still throwing the same error.

when I click on the green Play/Run button to start the project under problems window I have Description	Resource	Path	Location	Type

Expected '===' and instead saw '=='.	main.js	/MyWatchFace/js	line 135	JavaScript Problem

it highlights this if (e.keyName == 'back') {

removed and restarted it again and same thing. any ideas ?

this is happening before I make any changes to any files , and just following the steps in op
[Samsung Gear 2 Neo] Breach:
Here are a couple very basic animated analog watch faces as samples..

.
[Samsung Gear 2 Neo] ex-28:
them are nice ! iris pulse looks good

Q is there anyway to have shortcuts at the bottom on an analog clock ? just wondering if possible. :)

and when we pop a .wgt into the tools folder and install it via cmd , how do you uninstall it ? as theres no package id in the sdk anymore
[Samsung Gear 2 Neo] Breach:
That makes no sense, first because there was no change made to the main.js, and secondly because that is the eventListener and it should be '==' and not '==='
[Samsung Gear 2 Neo] Breach:
I need to figure that out, but put that aside to post this tutorial so everyone could play along.. I'm not a developer.. I am learning just like you, but sharing what I learn as I go.

To uninstall am app you push via sdb, you will need to decompress the original .wgt file, look inside the config.xml source with a text editor, and then find the package id. For example, the Iris.wgt package id is RufmJC7Nl3. To remove it from the phone, run sdb uninstall RufmJC7Nl3

.
[Samsung Gear 2 Neo] ex-28:
ya I know no changes made at all , really strage and im kind of stumped on it here , other then my open gl error on the emulator when it opends in my other post screen shot, im stumped.

---------- Post added at 12:52 PM ---------- Previous post was at 12:48 PM ----------

to manually uninstall a .wgt

I just copied the .wgt file into my project explorer then followed the other steps in op to manually uninstall , this way it will give you the id

hoping this works trying it out

---------- Post added at 12:56 PM ---------- Previous post was at 12:52 PM ----------

ok that's works , hoping users will post there package id's when sharing there work as well makes it eaiser for users :)
[Samsung Gear 2 Neo] Josh H.:
Same issue here. Re-installed and started over, and still having the same issue. I'm running the 64bit Win7 SDK ver. 1.0.0b2 on Windows 8.1.
[Samsung Gear 2 Neo] Breach:
I'm running the 64bit Win7 SDK ver. 1.0.0b1 on Windows 8.1.

I can't replicate the error, so I can't offer much advice. I do know the one other who had the issue was still able to build/install/run the watch face, even with that error.

.
[Samsung Gear 2 Neo] ex-28:
yes all works fine with the error however I also noticed that in the emulator when I go to change the watch face , my background image doesn't show up in the list of watch faces there , same goes for on the watch itself when I go to select one , but when its set it shows the proper image on the watch and on the emulator.

I tried to copy your main.js from the Matrix.wgt I extracted , but not having much luck in getting it working.
[Samsung Gear 2 Neo] Breach:
The main.js from the Matrix.wgt is the stock main.js. I did not modify anything except the background, style.css and config.xml

.
[Samsung Gear 2 Neo] ex-28:
ya I figured it was stock as mine should have been but my stock one throws that error , so was trying to use yours but no luck :)
[Samsung Gear 2 Neo] ex-28:
ya mine still works with the error , only problem is when I go to change the watch face on the emulator I cant see the background image on it , but once I select it , it works fine on the display of the emulator .

once I load it on the watch same thing when I browse the watch faces theres no background image , once selected it appears.

error is weird.......
[Samsung Gear 2 Neo] ex-28:
ok I have a problem , I loaded a wgt file on my watch and it works but I need to uninstall it , problem is I deleated the wgt file from my computer and the project so I cant get the id.

if I pluggin the watch I can browse it all from within tizen on bottom left explorer is there a way I can get the id or remove it from here ?
[Samsung Gear 2 Neo] Breach:
When you browse from the Connection Explorer, go into the following directory..

/opt/usr/apps/

You will see some project ids in there... such as "J4zRTnDLkb" if it was my redsoxwatch

It will be hard to tell which of those apps is the one you want to uninstall, but a possible trick is to go further into this directory...

/shared/res

There you will find the custom icon (if there is one installed), so in the case of my watch, you would find "J4zRTnDLkb.redsoxwatch.jpg"

I hope it helps, if so.. Please hit the Thank You button for my time and assistance. ;)
[Samsung Gear 2 Neo] ex-28:
thanks soo much , worked like a charm from within the deep dir I was able to export the image and locate the missing one :)

will catch up on you for this as , "Sorry, you are limited to 8 thanks per day"
[Samsung Gear 2 Neo] Breach:
:) Thanks man
[Samsung Gear 2 Neo] markbc01:
Thanks for your great support and guidance to us so far! Really! :good::good:

However, I wonder if can we create a 24-dial watch face for our Gear 2 Neo's?

Most watch faces seem to use the standard 12-hour code, and simply adjust the background.

However, I would really be interested in creating/seeing a "military time" type 24-hour watch face. this would be where the hour hand rotates 1x each 24 hours (with numbers from 1-24) and the minute hand does the "normal" 60 minutes around the face routine.

(Some Swiss watches have this -with the hour dial on the interior, and the minutes portion on the outer edge of the watch face.) Personally, I think that's a really nice change, but don't know how to adjust the basic watch face to make that happen!

Any thoughts? :confused:

:confused:
[Samsung Gear 2 Neo] djbrotherson:
Is it possible to add shortcuts and weather to a watch face? I've noticed there is a lack of watch faces that have the weather and was wondering if that's because they're not allowed or if there's another reason
[Samsung Gear 2 Neo] BigDanInTX:
This is very possible. Just halve the distance the hour hand travels vs a normal layout.
[Samsung Gear 2 Neo] markbc01:
Thank you!

I think I will try to get a "normal" one built --and then work/experiment off that model to try and get a 24-hour face that works!. .
[Samsung Gear 2 Neo] markbc01:
Thank you for an excellent primer on creating a watch face. . . it worked! :good::good:

My experiences were:

- I had to install the SDK in the safe mode --for some weird reason it just would not install cleanly in the normal mode.

- Like a couple of others, I also got the error for line 135: expecting "=== but only seeing ==" ; but I simply edited those lines and added a "=" in the two error lines and it seemed to work.

- Also changing the background was kind of tricky. Pasting into the project was easy (once I figured out how to do that), but editing the style.css was tougher - had to bang around until I finally got into the edit mode & change the background line to the file name in the format you provided for us.

- I had to go the emulators "settings" gear and select my new watch -just as if the emulator was a real neo,, and then I saw my background without problem!

- Finally, the watch connected and I was able to push the wgt without any problem! (Easier than using fastboot on a kindle:)

- It worked on my Neo quite nicely (although my watch face is truly kind of lame! It's only the Tizen-supplied space background that I placed on the stock sample watch face. I could have the same effect by simply uploading the wall paper, but at least I "made" the watch! :)

On a separate note, I also downloaded the Tizen Watch SDK on my Mac. The controls are a just a bit different, but most of the kit looks the same. (Did not finish the project on the Mac yet --might try that later).

Now to try and adjust the hour hands to create a 24 hour watch face. . . with numbers instead of tick marks for the hours. . . I have a hunch that won't be as easy as following your excellent guide ;)

Thank you very much again!

This has made my Gear 2 Neo even more interesting /fun!

:good::good:
[Samsung Gear 2 Neo] Breach:
Thank you for your experiences and for your kind words.

I am glad you found the tutorial helpful. :)

.
[Samsung Gear 2 Neo] gottahavit:
Shortcuts are easy enough, I am working on a customizable watch that will allow shortcuts. Have that working, but am still fighting the tools. This is a very immature development IDE and API. Documentation is absolutely unforgivable.
[Samsung Gear 2 Neo] markbc01:
Using the tutorial, I was able to create a 24 hour watch.

However, I did not use the watch sample, I think I used the App sample

so my watch loaded/installed as an app and not a watch choice.

I see the 24 hour face is a bit crowded on the screen. . . Here is a screen shot of

the emulator view. The watch view is the same, but a bit smaller to look at. . .
[Samsung Gear 2 Neo] BigDanInTX:
You could always just show every few of the "ticks" - 3, 6, 9, 12, 15, 18, 21, 24... 6, 12, 18, 24... Wouldn't be as crowded.
[Samsung Gear 2 Neo] admiral70:
How do you switch to digital clock? I used the sample do I have to go get a new template somewhere?

Thanks
[Samsung Gear 2 Neo] Breach:
You can open your config.xml from within the Tizen IDE and click the Source Tab at the bottom.

Look for the application id line.. For example..

<tizen:application id="J4zRTnYAb.mywatch" package="J4zRTnYAb" required_version="2.1"/>

Add this line directly after it...

<tizen:category name="com.samsung.wmanager.WATCH_CLOCK"/>

This will make your app into a watch/clock.

----

Note that you can also edit index.html to get rid of the "Analog Watch" text.

.
[Samsung Gear 2 Neo] jonrobertd:
I keep getting the error too.

"Description	Resource	Path	Location	Type

Expected '===' and instead saw '=='.	main.js	/G2Nface/.build/Result Resource Layer/js	line 135	JavaScript Problem"

Any one know what this is or how to remedy it, the upload to emulator hangs around 60%.

EDIT: REMEDY: Got it working by disabling JSLint builder.Got no loading to emu with adding = to the line so more research found this.

Now how about a how to on changing hands and other stuff?
[Samsung Gear 2 Neo] Restless-rooster:
Really? Have you found a way to add notifications to the watch face? I have one that I am working on, but want to wait to release it until I find a way to add the notifications to it.
[Samsung Gear 2 Neo] gottahavit:
As of right now you can't. The only way you'd be able to do it is to intercept the notifications yourself separately on the phone and have your own notification tracker.

I may try to do this once I finish my customizable watchface. I have everything working except some cleanup on the configuration app.
[Samsung Gear 2 Neo] Gossieur:
Wgt. files

I have just added a black Cartier and a Panerai in the forum ( http://xdaforums.com/showthread.php?t=2483553&page=477 )

Maybe we can post the new projects over there ?

It is becomming dificult to follow up the different threads where we put our themes :)
[Samsung Gear 2 Neo] BigDanInTX:
Holy @#$%, that's a gold mine of wsthemes... I had no idea.
[Samsung Gear 2 Neo] nooberjones:
Coolwatch templates

I found these cool analog watches and have tried to make them work in tizen but I can't figure it out. Would anybody mind helping? If possible, can I get the source code so that I can figure it out? Ideally what I would like to do is be able to choose which one I want to use on my Gear however I can work with having to choose before compiling the application.

I am attaching the files so that you know what I am talking about.

Thanks,

Noober
[Samsung Gear 2 Neo] onedirection:
Do you or does anyone here know how to put digital watch instead of second and hour needle?? and any idea to change font, color,or size of it?? need it very much! thanks in advance!
[Samsung Gear 2 Neo] RussiaWolf:
Matrix.wgt

Does anyone have a matrix.wgt that they would be willing to share? :)

Thanks in advance!
[Samsung Gear 2 Neo] popdevil:
Can't get emulator to show the watch

I followed the steps and have everything working but when I follow the steps to click on the green play button I get the following error.

There is no target to launch. Please select an emulator or a device in connection explorer

I have the emulator running but it seems to be a totally different emulator then what I'm doing.

I'm also using a MAC and not a PC.
[AT&T Samsung Galaxy Note II] josephh71:
I'm on Stock rooted MK6 ROM. The call reception is very poor altogether. i have flashed a few radios and the MK6 seems to be the best i can get so far but calls drop frequently or become distorted or I'll get the "Emergency Call Only" error. Is there anything to do to improve call quality (signal) to the hand set. I'm getting the 4g but calls are lowsy
[AT&T Samsung Galaxy Note II] pablo21pr:
hi.

I have that problem with my note II

the only thing that worked for my was this

http://xdaforums.com/showthread.php?t=2618447
[AT&T Samsung Galaxy Note II] StarMugen:
YAh mine was like that too and on top of that my phone's internet stopped working even though i tried this step above still no avail i'm in a pinch situation can't afford to return phone after tripping knox counter...
[AT&T Samsung Galaxy Note II] SpiffySelf018@yahoo.com:
It have two causes one is hardware mean device antenna and second one firm problem. You flash the device and install new firm wear if problem remain same then you should contact the repair and maintenance service provider.
[AT&T Samsung Galaxy Note II] josephh71:
Bad motherboard

I took it in for repair. They said they changed the antenna but still no reception. He told me it was a bad motherboard si now I'm trying to figure out what to do