Showing posts with label sdk. Show all posts
Showing posts with label sdk. Show all posts

Sunday, March 18, 2018

how to install (and debug and use and dvp u first "hello') TizenStudio to develop samsung for products on mac OSX sierra and later : example of Gear S, Gear S2, Gear Fit2, Gear S3, Gear Fit2 Pro and Gear Sport


INTRO on SAMSUNG GEAR SDK/IDE install

GEAR WATCH DESIGNER "NOW" COVERS ALL GEAR DEVICES (jan 2018)

Make your own Gear watch face in just a few steps on your Mac and PC.
Now available for Gear S, Gear S2, Gear Fit2, Gear S3, Gear Fit2 Pro and Gear Sport

For the example of Gear Fit2 Pro :
http://stephane-mottin.blogspot.fr/2017/12/samsung-gear-fit-2-pro-2017-sm-r365.html

The link for dvl:
http://developer.samsung.com/gear

1/ télécharger le SDK (win, ubuntu ou mac)

sur mac: web-ide_Tizen_Studio_2.2_usa_macos-64.dmg
500Mo

http://usa.sdk-dl.tizen.org/web-ide_Tizen_Studio_2.2_usa_macos-64.dmg

2/ on lance ce .dmg;

3/ error:


il faut java KDK ≥7

Et un bug! Aurait du prévenir que JDK≤8

il faut enlever 9.x si vous l'avez installé...
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
Don't forget to check the
 /Library/Java/JavaVirtualMachines/ 
manually and see what your real JDK version is.

https://gist.github.com/schnell18/bcb9833f725be22f6acd01f94b486392

4/installer java JDK 8.

voir ci-dessous "tizen needs Java SE Development Kit 8u162"

5/install IDE de_Tizen_Studio_2.2_usa_macos-64.dmg


voir photo ci-dessus de présentation
653Mo !!!


Et après >1h pour ce manager,

on obtient:

Problems

Tizen studio 2.0 is not working on macOS Sierra.
The application is frozen on the workspace selection page and no button is clickable.
Tizen Studio freezes in "workspace launcher".

Open Terminal
Go to TizenStudio.app/Contents/MacOS
There may be the file named eclipse (binary file) (I'm not sure above path is correct , but you can find the file named eclipse which is binary around that location )
Execute Tizen Studio typing in as below
./eclipse -debug -consoleLog
Some log will be shown on the terminal

only one solution: downgrade to java 1.8.0_151 or 131...

https://developer.tizen.org/forums/sdk-ide/tizen-studio-2.0-not-working-on-macos-sierra


archive java JDK 8
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
---

after debugging, the use of TizenStudio 2.2 and Tizen 4.0 platform (API 4.0)




Creating Your First Wearable Application
Creating Watch Faces
Creating Widget Applications (Widgets act as an informative and actionable shortcuts to applications)
Samples
https://developer.tizen.org/tizen/wearable

hello

change the "hello Watch" to hello xxxxx



Ref
https://developer.tizen.org/development/training/native-application/getting-started/creating-your-first-tizen-wearable-native-watch-application

Samples

all
https://developer.tizen.org/zh-hans/development/sample/native

examples digital clock
https://developer.tizen.org/zh-hans/development/sample/native/Clock/Digital_Watch
https://developer.tizen.org/zh-hans/development/api-references/native-application?redirect=/dev-guide/2.3.1/org.tizen.native.wearable.apireference/group__CAPI__WATCH__APP__MODULE.html&langredirect=1

examples analog clock

This sample application demonstrates how to create an analog watch with ambient mode support.
https://developer.tizen.org/zh-hans/development/sample/native/Clock/Analog_Watch

emulator for gear fit2

Till now (2018-01) there is no Emulator on Tizen Studio for Gear Fit series. 
But you may run your projects on Square Emulator in order to test Fit series projects. You can fix the resolution of your project from config.xml.
As the resolution of Gear Fit 2 is 216 x 432, i am setting height and width accordingly.
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" height="432" width="216" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/XXXX" version="1.0.0"  viewmodes="maximized">
   ........
    <tizen:setting screen-orientation="portrait" context-menu="disable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>
</widget>
And taking the emulator having resolution 320 x 320 as there are no other square emulator option on the Tizen Studio. Hopefully this technique will solve your problem.

https://stackoverflow.com/questions/47883225/emulator-for-samsung-gear-fit-2-tizen
---

running on your watch

https://stackoverflow.com/questions/38549233/cant-connect-to-gear-s2-using-sdb
---
error SIGNATURE_VERIFICATION_FAILED[23] when running it.
pb certificate
http://developer.samsung.com/z/develop/getting-certificates/create

https://developer.tizen.org/zh-hans/forums/native-application-development/error-23-certificate-error-while-performing-native-demo-app?langswitch=zh-hans
From package manager "Extension SDK" , Check whether you have installed Samsung Certificate and Wearable extension or not . You have to install these two extensions.
http://imgur.com/a/xSaMN
http://imgur.com/a/cM4AV

you must create 
a Samsung publication certificate
AND a Tizen certificate

and It works!!!!

Just select not only the emulator but your device (device manager)...

In french, we say : OUF!

---

qq remarques en anglais sur le monde java et mac

http://osxdaily.com/2017/06/29/how-install-java-macos-high-sierra/

MacOS no longer ships with Java preinstalled (6.0), so you’ll need to download and install java on your own if you need it in MacOS 10.13 or 10.12. This is to insure that the most recent version of Java is installed on the Mac if it’s needed, aiming to lessen potential security issues that may come up with older versions of the Java software (though older versions of Java can be installed if need be for a specific reason).

Moreover think that  some parts of CS6 as Illustrator CS6 need legacy Java SE 6 runtime.
Then you must use terminal mode...
Adobe Illustrator CS6 with Java 8?

On my Mac, the creation of these directories
sudo mkdir /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
sudo ln -s '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents' /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
sudo mkdir /System/Library/Java/Support/Deploy.bundle
alone allows me to run Illustrator CS 6 even when neither Java 6 nor Java 8 is installed. Apparently, Illustrator only checks for the presence of these directories to determine whether Java is installed (it actually launches even when java itself is absent, provided directories above are created). I would like to know, which functionality in Illustrator CS 6 actually requires Java, as it apparently can launch without it.
Note: On OS X 10.11 and later you'll need to disable System Integrity Protection from the Recovery HD using csrutil disable in Terminal. Have a look at: About System Integrity Protection on your Mac & How to Disable System Integrity Protection (rootless) in OS X El Capitan.


The latest version java LTS

The Version 8 Update 161
Release date January 16, 2018
https://www.java.com/en/download/
macOS Sierra 10.12 users: A few issues have been reported on Sierra. See FAQ for more information.
https://www.java.com/en/download/faq/sierra_java.xml
Java 8 is the long-term-support (LTS) version and Java 9 SE support ends March 2018; and Java 10 support is planned to start that month. Java 10 support ends prior to Java 11 that's planned for September 2018, and it will be the next LTS. 

The latest version of JDK

Java SE 9.0.4; 16 January 2018

The Java Development Kit (JDK) is an implementation of either one of the Java Platform, Standard Edition, Java Platform, Enterprise Edition, or Java Platform, Micro Edition platforms[1] released by Oracle Corporation in the form of a binary product aimed at Java developers on Solaris, Linux, macOS or Windows.

tizen needs Java SE Development Kit 8u162

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

world of Java

https://en.wikipedia.org/wiki/Java_Development_Kit

Java SE Development Kit). For Java Developers. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.

JRE:  Java Runtime Environment,
The JDK also comes with a complete Java Runtime Environment, usually called a private runtime, due to the fact that it is separated from the "regular" JRE and has extra contents. It consists of a Java Virtual Machine and all of the class libraries present in the production environment, as well as additional libraries only useful to developers, such as the internationalization libraries and the IDL libraries.

On 17 November 2006, Sun announced that they would release it under the GNU General Public License (GPL), thus making it free software (released by Oracle Corporation in the form of a binary product aimed at Java developers on Solaris, Linux, macOS or Windows. ).
https://en.wikipedia.org/wiki/Java_Development_Kit
http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html



Friday, December 29, 2017

samsung gear fit 2 pro 2017, SM-R365, software tizen and hardware ; more than an Activity-tracking wristbands


The Samsung Gear Fit2 Pro has
  • a 1.5-inch 38.5mm Curved Super AMOLED, curved screen at 216 x 432 resolution 16M with full sensitive surface
  • a dual-core 1.0 GHz CPU paired with 
    •    512MB of RAM 
    •    4GB of storage, 2GB available
    •    4GB ROM
  • a battery has a 200 mAh capacity ; Lithium-ion battery
  • two buttons
  • many sensors: Accelerometer, Barometer, Gyro Sensor,  optical Heart Rate Monitor.
  • built-in GPS glonass (russian system)
  • Bluetooth connection v 4.2
  • wifi connection 802.11 b/g/n 2.4GHz
  • fast adaptative charge with a proprietary connector (2pins) USB cable
  • tizen OS (i think v 3; see below)
  • many built-in softwares with
    • ability to automatically recognize certain activities, 
    • an increasingly common feature in fitness bands and watches
    • Audio Playing Format: MP3,M4A,3GA,AAC,OGG,OGA,WAV,WMA,AMR,AWB 
  • samsung ecosystem hardware and software (samsung gear and health) on ios and android)
  • others
    • 50m water, 5ATM pressure and water environment,  IP68 rating to add MIL-STD-810G certification
    • 51.3 x 25.0 mm
    • 34g
    • Body SAR : 0.116 W/Kg

economics

price 229€
@ Orange for Christmas:
229€ and rebate from Orange 50€ and rebate from Samsung 30€ then 149€

By some estimates the company may have sold between 10 and 12 million smartwatches in its first year, and Apple is ranked third on IDC's list of top wearables vendors for the first quarter of 2016. But Samsung is fifth on that same list, claiming just a 3.6 % share of the worldwide wearables market, and that sliver is mostly comprised of Samsung's smartwatches, not fitness bands.

drawback

However, the Gear Fit 2 has one drawback that those other aforementioned bands don't have: it only works with Android smartphones (4.4 or higher) or iOS, whereas Fitbits and even Garmin devices work with a variety of mobile platforms as well as desktop software.

The Gear Fit2 Pro doesn't have a speaker.
no brightness sensor to adjust the screen brightness.

"small ≠ " with Gear fit 2 (2016):
  • GPS usable on Pro, not on Fit2. GPS is the biggest bug Sam cannot fix by firmware on Fit 2.
  • Many third party apps that worked on the Gear Fit 2 do not seem to be installable on the Gear Fit 2 Pro. 
  • u can program (see below)
  • "meilleur bracelet"; Traditional strap clasp is a very good improvement.

overall

http://www.samsung.com/uk/wearables/gear-fit2-pro-r365/SM-R365NZKABTU/
http://www.samsung.com/fr/wearables/gear-fit2-pro-s/SM-R365NZRNXEF/

https://en.wikipedia.org/wiki/Samsung_Gear_Fit_2

Apps

Spotify

music streaming and play-lists and covers... with your cellular phone or computer (and Spotify).
Samsung is also the second tech company in recent days that has partnered with Spotify to create a dedicated Spotify app for its new wearable gadget. (Pebble was the other.) So there are three options for music listening through the new wristband. You can store up to 2.5GB of music locally on the device, use the wristband as a Bluetooth remote control for other music apps on the phone, or play Spotify from your wrist — although you'll still need a phone in tow for that, at least for now.

UA RECORD

See your activity, sleep, and workout stats in one dashboard and get insight into your health and fitness levels.

MapMyRun

Plan and track your routes with real-time maps and capture every run, ride, and walk.

MyFitnessPal

Eat smarter and achieve your health goals by keeping track of the calories you consume and burn

Endomondo

Join a global community of fitness enthusiasts as you reach your running goals with personal training plans.

Speedo

for swimming
The Speedo On app is not integrated into Samsung Health, so when I swim it records the steps instead and congratulates me on my walk. I then have to manually enter my swim I to Samsung Health. I have also messaged Speedo as their app which is preinstalled on the device has an issue with swimming pace. I'm not a fast swimmer and when I click finish on the app on the device it alters the time I have been swimming, making me look like any Olympic athlete. 

battery life

Its expected battery life is better than you might expect for a wristband with a large display and GPS and BT/wifi.
  • 12h for a strong full use
  • 48h for my usual use
  • 1week for a minimum use (no GPS, no wifi, BT @ some time, screen @ level 1-2) just to record your HR and some data, no download.
Although with "Always On" I use  75% of the battery in a day (because large display)

dev; SDK

https://forum.xda-developers.com/gear-fit2-pro
http://developer.samsung.com/gear/design/watch-designer
https://www.google.fr/search?q=%22Samsung+Gear+Watch+Designer
https://www.youtube.com/watch?v=eewUuUw3c-8

Gear Watch Designer

GEAR WATCH DESIGNER NOW COVERS ALL GEAR DEVICES
1.5.1_beta - Nov 23, 2017
BETA DOWNLOAD for Win - v1.5.1
BETA DOWNLOAD for Mac - v1.5.1
JRE (Java Runtime Environment) 1.8 or later. 32-bit JRE is required if u are use Windows.

Now available for the Gear S, Gear Fit2, Gear S2, Gear S3, Gear Fit2 Pro and Gear Sport (New)
Design, produce, and distribute your own Gear watch faces without the complexity of code scripting


SDK

Samsung and Tizen provide everything you need to develop apps for Gear

The flexibility of Tizen is not limited to mobile devices but extends to other devices, including the Gear. This can be translated to developing applications that can be built using a Native or a Web approach. Whether you are a serious developer or a hobbyist, C or HTML5, building a Tizen app can suit your programming style that can be implemented across platforms.
http://developer.samsung.com/gear/develop/creating-your-first-app

samples

http://developer.samsung.com/gear/develop/samples/standalone#

tizen

it's an operating system based on the Linux kernel and the GNU C Library implementing the Linux API.
Tizen works on a wide range of Samsung devices including smartphones, tablets, in-vehicle infotainment (IVI) devices, smart TVs, PCs, smart cameras, wearable computing (such as smartwatches), Blu-ray players, printers and smart home appliances (such as refrigerators, lighting, washing machines, air conditioners, ovens/microwaves and a robotic vacuum cleaner).

Tizen is a project within the Linux Foundation and is governed by a Technical Steering Group (TSG). It is controlled by Samsung and also backed by Intel.

In late January 2013, Tizen 2.0 scored highest at the time in an HTML5 test of any browsers. R
esults for Tizen 2.2 on a Samsung device score highest overall in mobile, with a score of 497 points.

Tizen IVI (In-Vehicle Infotainment) is an operating system from the Automotive Grade Linux Workgroup. It is PC-compatible.
RT OS with security and resilience.

Its SDK is built on top of open source components,but the entire SDK is copyrighted by Samsung Electronics and under a non-free EULA.

The roots of Tizen date back to 2007 with the creation of the LiMo Foundation. The LiMo project resulted in the LiMo Platform in 2009 but it was unsuccessful against rival open source platforms from the Open Handset Alliance (led by Google) and Symbian Foundation (led by Nokia).

As of 2016 Samsung is planning on making Tizen its main operating system on all smartphones, replacing Android.
On May 15, 2017 Samsung unveiled its fourth smartphone powered by Tizen operating system in India, the Samsung Z4 which launched in India that comes with 4.5 inch of LCD displays which is protected by 2.5D curved glass, it has 1GB of RAM, 1.5Ghz Quad-Core Arm cortexA-7 based Spreadtrum processor (SC9830A), 8GB of ROM, 5 MP rear camera with dual flash and 5MP front camera with flash. It has Operating system of Tizen which is Tizen 3.0.

As of Q1 2017 Tizen is second largest smartwatch platform, behind watchOS and ahead of Android Wear.
On May 31, 2017, Tizen released Tizen 4.0 Public M1 Release Notes.

https://en.wikipedia.org/wiki/Tizen

in french

C'est Samsung qui est à l'origine de Tizen, en collaborant avec le projet EFL (Enlightenment Foundation Libraries) et plus précisément son développeur principal, Carsten Haitzler (« Rasterman »). 
Le projet a été nommé LiMo (Linux Mobile) pendant de nombreuses années, puis rebaptisé Tizen en septembre 2011 lorsque Intel s'y est ajouté après son échec sur MeeGo.
Contrairement à Android, Tizen est un projet décentralisé : chaque fabricant ou opérateur aura une interface utilisateur spécifique, développée avec EFL.
Les applications Android sont compatibles Tizen grâce à un clone de la machine virtuelle Dalvik. La performance des applications Android sur Tizen est donc identique par rapport à Android. Deux services permettent aux développeurs de publier une application Android sur le Tizen Store : Infraware et OpenMobile.

En conclusion, Tizen donne accès à quatre types d'applications :

  •     les applications natives Tizen (C, C++, Python, Lua) ;
  •     les applications web, sans navigateur (HTML5, JavaScript);
  •     les applications hybrides ;
  •     les applications Android publiées sur le Tizen Store.

list of Devices